55250 Commits

Author SHA1 Message Date
mattsc
1f1ae18749 SotBE S4: force AI to attack enemies 1 XP from leveling
.. so that it is not possible to block key positions with such units.
2014-01-18 16:02:10 -08:00
Alexander van Gessel
7a1e639ca2 Make the clang test actually work 2014-01-19 00:28:38 +01:00
Alexander van Gessel
eb86ebabfc Don't error out clang with unknown warning options 2014-01-18 23:52:28 +01:00
Alexander van Gessel
b49baa68dd Enable strict compilation on travis 2014-01-18 23:16:08 +01:00
Mark de Wever
c8d95a0a92 Disable -Woverloaded-virtual for clang.
Clang 3.4 compiles cleanly with this warning enabled, but Clang 3.2
fails. (Clang 3.3 hasn't been tested.)

This reverts 5fb8dc8a3356b284b8890481df62cfb087a2c300
2014-01-18 22:30:11 +01:00
Mark de Wever
9d95c78b0f Avoid an overloaded virtual warning.
Remove the default argument and let some subclass signatures match the
ones on the parent class.

The error was found by Clang.
2014-01-18 21:04:40 +01:00
Mark de Wever
3d19ae14f8 Avoid an overloaded virtual warning.
Use using statements to avoid hiding the overloaded virtual.

The error was found by Clang.
2014-01-18 21:04:21 +01:00
Mark de Wever
f9abb6eaf1 Improve the error when NDEBUG is defined.
Also add some comment to explain /why/ it should not be enabled.
2014-01-18 20:24:04 +01:00
Allefant
e8b930260f [wmlunits] simplified dependencies 2014-01-18 16:39:36 +01:00
mattsc
02f164c412 Update changelog with [filter_vision] bug fix 2014-01-18 07:18:17 -08:00
ln-zookeeper
071d4aa6de Fixed breakage. 2014-01-18 17:08:39 +02:00
ln-zookeeper
c346045783 Merge branch 'master' of https://github.com/wesnoth/wesnoth-old 2014-01-18 10:41:57 +02:00
ln-zookeeper
6ec38efb14 Gave Li'sar the new "initiative" ability (gives melee firststrike for adjacent allies). 2014-01-18 10:37:11 +02:00
Alexander van Gessel
7e9c5473bc Add a default ToD if none are present. (bug #21489) 2014-01-18 06:48:31 +01:00
Alexander van Gessel
4474d22dab Don't display resolution ratios where the GCD is smaller than 10 2014-01-18 06:45:12 +01:00
mattsc
22dec61d3e Fix logic of [filter_vision] in Standard Unit Filters (SUFs)
Previously, the [filter_vision] tag would cause a false positive when a
unit was on terrain on which it was invisible and that also was under
fog/shroud.  There might have been other combinations that did not work
either, I did not check that.  I did check that all 8 combinations of
visble=yes/no, the unit hiding due to terrain or not, and the hex being
under fog/shroud or not work now.
2014-01-17 19:19:27 -08:00
Nils Kneuper
61fb0c0a8b updated Scottish Gaelic translation 2014-01-17 22:55:06 +01:00
Allefant
0c4cd5a337 [wmlunits] implemented dependencies support 2014-01-17 18:13:45 +01:00
mattsc
8e68a0c5da SotBE S8: some balance tweaks 2014-01-17 08:43:07 -08:00
Groggy Dice
e059677112 wmllint: take out testing lines 2014-01-17 06:02:33 -05:00
Groggy Dice
6aa8d86b3e wmllint: recognize unstored units
This required care to:

* not add ids inside [not] tags
* remove items from dictionary not just when unstored, but when
  clear_variable is used
* handle comma-separated values
2014-01-17 05:38:44 -05:00
Groggy Dice
c7de5ce968 wmllint: lay groundwork for recognizing unstored units
The next commit will actually populate the dictionary and append
the id to recognized characters.
2014-01-17 05:38:40 -05:00
Allefant
e9430a02d1 [wmlunits] increase timeout for parsing user addons 2014-01-17 10:58:38 +01:00
Allefant
dc4670b897 [wmlunits] Don't abort un uncaught exceptions.
Instead keep going to the next addon during pre-parsing of user addons.
2014-01-16 17:45:46 +01:00
Alarantalara
3f6c2e414c Use respawn event to create trainees
Reduces number of definitions for each unit to one, preventing
synchronization problems
2014-01-15 23:51:57 -05:00
Alarantalara
446221cfbc Use filter_condition for rescue event after Xanthos dies 2014-01-15 23:29:01 -05:00
Ignacio R. Morelle
a74175577f Enforce some GUI consistency on the "game has been saved" notification
* Use gui2::show_transient_message().
 * Add missing stop at the end of the message.
2014-01-16 01:19:23 -03:00
Ignacio R. Morelle
51514b635d Enforce some GUI consistency on the "not an MP save" alert
* Use gui2::show_transient_error_message().
 * Add missing stop at the end of the message.
2014-01-16 01:19:23 -03:00
mattsc
0e61ab60a4 SotBE S8: adjust initial village ownerships to new map
This also contains a work-around for a bug in SLFs introduced in 1.11.8.
2014-01-15 18:54:25 -08:00
mattsc
58d3ca6fb9 SotBE S6: put only 3 transports out there on easy difficulty 2014-01-15 18:54:25 -08:00
mattsc
7e50b6f378 SotBE S6: make Affman a grunt on medium and hard
Otherwise, he sometimes keeps the AI busy all by himself for quite a
while which is okay for easy difficulty, but not for the other two.
2014-01-15 18:54:24 -08:00
mattsc
c40b38ff7c SotBE S4: add note about side 3 units not being carried over 2014-01-15 18:54:24 -08:00
Bär Halberkamp
e621978e57 EI: Updated S8's map 2014-01-16 00:30:10 +01:00
Alexander van Gessel
f9308f727d Merge branch 'wmlparser_metadata' 2014-01-15 18:02:50 +01:00
Allefant
92b02a6562 [wmlparser2] Parse multi-line WML tags.
Sigh. Probably should re-write the .plain file parser to first remove
all commands, keeping the meta-information in a separate class. Then
parse the result (which should be much simpler) and consult the
meta-information where necessary (text-domain for strings, source files
and line numbers for tokens).
2014-01-15 17:34:42 +01:00
mattsc
5b481e96aa SotBE S4: vary AI income with difficulty 2014-01-14 10:17:52 -08:00
ln-zookeeper
a93ca43d8c Removed Traveling Minstrels from the playlist due to it being too jolly for the occasion. 2014-01-14 17:53:19 +02:00
Ignacio R. Morelle
c9aaaed139 Don't force the .gz suffix on every entry of the save_index (bug #20849)
Quoting the code from savegame::save_index_class::data(const std::string&):

  /*
   * All saves are .gz files now so make sure we use that name when opening
   * a file. If not some parts of the code use the name with and some parts
   * without the .gz suffix.
   */

... A confusing statement that makes absolutely no amount of sense
whatsoever and comes from patch #3125! Not even back then it was true:
saved games could be either compressed (.gz) or uncompressed plain text
files (no extension). Nowadays we also have bzip2-compressed (.bz2)
files to add to the mix.

Most code actually calls the savegame-related functions with an explicit
file extension (if applicable), which is the source of a whole array of
maintainability concerns at this time; thus, I am not really sure what
the "some parts of the code" part refers to.
2014-01-14 02:19:19 -03:00
Ignacio R. Morelle
d110cd16d8 sound: Report missing tracks early in play_music_config() (bug #21479)
This makes it so play_once=yes tracks are caught in the check too.
2014-01-14 01:30:35 -03:00
Ignacio R. Morelle
da2ac22e28 Remove useless commented-out define 2014-01-14 01:23:03 -03:00
Ignacio R. Morelle
ab177e4a83 Remove useless commented-out define 2014-01-14 01:22:52 -03:00
Ignacio R. Morelle
3a09fadbbe License block formatting fix 2014-01-14 01:22:34 -03:00
Ignacio R. Morelle
406e055a65 License block formatting fix 2014-01-14 01:20:09 -03:00
Ignacio R. Morelle
fa9f139df0 Add missing source code license block 2014-01-14 01:19:58 -03:00
Ignacio R. Morelle
c57475c383 License block formatting fix 2014-01-14 01:19:32 -03:00
Ignacio R. Morelle
031dc8a213 Apply TC to the Unknown side leader icon in the Status Table unconditionally
Previously, the Unknown icon only received TC if the leader unit for
that side supported TC, and it'd only use the source palette specified
in the unit configuration. Our Unknown icon, however, always needs TC,
and it must always be on the magenta palette.
2014-01-14 01:12:06 -03:00
Ignacio R. Morelle
d8a74ab17e Indentation fix 2014-01-14 01:02:49 -03:00
Ignacio R. Morelle
c84989632a campaignd: Don't prefix errors sent to clients with "#Error: "
The string only worked as intended before the GUI2/Pango days (i.e.
before some 1.5.x version), meaning that the client would use a red
color for the font.

In other words, deplorable user interface design.

Nowadays, the add-ons client uses a dedicated error message path for
presenting this kind of alerts to the user, which uses a dialog with a
visible "Error" caption and everything. We don't really need extra
formatting, and in any case, *it should not be the server's mission to
do this*!
2014-01-14 00:58:02 -03:00
Ignacio R. Morelle
eb42dd2171 Update changelog 2014-01-13 15:42:50 -03:00
Ignacio R. Morelle
cc75d12088 Add wesnoth.set_dialog_markup Lua function
This adds functionality to enable or disable Pango markup on GUI2
widgets instantiated by Lua GUI2 dialogs.

The code is taken almost verbatim from patch #2759 by Exasperation
<https://gna.org/patch/?2759>, rebased against current master.
2014-01-13 15:41:48 -03:00