61796 Commits

Author SHA1 Message Date
gfgtdf
c449fcbce2 fix unsynced wml menu items
Previously it would casue OOS to use unsynced wml menu items during
moves or other actions.
2015-07-12 21:56:03 +02:00
gfgtdf
37293b2576 Fix unsynced wml menu items
https://gna.org/bugs/?23685
2015-07-12 21:56:01 +02:00
gfgtdf
4c75f6cf66 make side=global the default for [get/set_global_variable]
previously this attribute always had to be spcified in networked mp.
This was specially annoing in unsyced contexts where this attribute was
ignored anyway.

See http://gna.org/bugs/?23686
2015-07-12 21:55:59 +02:00
Charles Dang
95ba1b2206 UtBS: only include dehydration events via macro in S2
'
This gets rid of invalid tags ([event]) serialized at toplevel when the campaign is started
and all the util macros being redefined by an in-scenario inclusion
2015-07-13 00:06:18 +11:00
Charles Dang
f4231e52df UtBS: new sandstorm attack icon 2015-07-12 18:09:51 +11:00
Charles Dang
7b5dacbec3 UtBS: unified dehydration and stunned theme status icon checks 2015-07-12 13:53:09 +11:00
Charles Dang
5eebd30c33 UtBS: dropped the Epilogue storytext screen 2015-07-12 13:38:25 +11:00
Charles Dang
728d8260d0 UtBS S1: no need for difficulty-variant gold if it's always 0 2015-07-12 13:16:07 +11:00
Charles Dang
51f0242903 UtBS: fixup 7397477b6e19, dropped some commented out code 2015-07-12 13:13:24 +11:00
Charles Dang
7397477b6e UtBS: cleaned up Kaleh's unit file
Most notably, this reduces code bloat by inheriting his base stats instead of
including them in every variation
2015-07-12 13:06:52 +11:00
Charles Dang
96c22c009f UtBS: moved Kaleh's definition to a macro (use in other scenarios pending) 2015-07-11 23:37:12 +11:00
Charles Dang
b30e01422b UtBS: include stun weapon special events directly in Kaleh's unit type 2015-07-11 23:18:18 +11:00
ln-zookeeper
fe73c98ad1 Clarified changelog entry and reordered categories 2015-07-11 12:24:53 +03:00
ln-zookeeper
067fc64017 Fixed troll sighting filter brokenness on easy 2015-07-11 12:18:35 +03:00
Charles Dang
4b7a4a7e85 UtBS: strip side= keys from character macros 2015-07-11 17:03:49 +11:00
Charles Dang
778dc676f0 UtBS: reduce macro inclusion by using [recall] for main characters 2015-07-11 17:02:03 +11:00
Charles Dang
3bd24a6d5f UtBS: removed ai/aliases/stable_singleplayer.cfg includes 2015-07-11 14:51:31 +11:00
Charles Dang
1790c9102c UtBS S1: general code cleanup 2015-07-11 14:51:28 +11:00
Ignacio R. Morelle
6c97b05f84 gui2/twidget: Recursively check visibility of parents in is_at()
This fixes an issue where visible children widgets can be interacted
with even if one of their parents is hidden. This fix is particularly
important for the implementation of layer selection in tstacked_widget.
2015-07-11 00:21:28 -03:00
Ignacio R. Morelle
86df4a9250 gui2/tstacked_widget: Add getter for the total number of layers 2015-07-11 00:21:28 -03:00
Ignacio R. Morelle
4854413f75 gui2/tstacked_widget: Add single layer mode and layer switching
This effectively allows us to use stacked_widget as part of the
implementation of tabbed dialogs like Preferences.

The most important thing here is making sure individual layers are
selected so that they can receive events. This works fine in testing,
and it's much easier for me to take an existing widget and adapt it for
my purposes rather than build a new one from scratch.

Another important thing is not selecting the same layer twice. This
apparently deselects it instead.

Finally, existing applications like the titlescreen are unaffected.
2015-07-11 00:21:28 -03:00
Charles Dang
a9d0146656 New standing animation for the Dwarvish Runesmith by Kwandulin 2015-07-09 18:24:44 +11:00
Ignacio R. Morelle
6ee669803b Remove describe*_versions() functions, supersed by library_versions_report()
font::manager::init() had a call to the font::describe_versions()
function I just dropped since there's little point in having that line
there when one can just run wesnoth --version to get the full table now.
2015-07-09 03:22:37 -03:00
Ignacio R. Morelle
077c66fdc0 New centralized library versions API
Registers library versions in a single structure that can be queried
later as many times as necessary (say, from the game UI) instead of
relying on recording this information in different object files in an
inconsistent fashion. Also, it provides a pretty formatter for console
usage (e.g., in --version).

libpng also gets to join in the fun.
2015-07-09 03:21:19 -03:00
Ignacio R. Morelle
a503066838 campaignd: Print version number and config file path on startup 2015-07-08 20:50:09 -03:00
Ignacio R. Morelle
14a5716b53 campaignd: Remember port number and report net configuration 2015-07-08 20:49:29 -03:00
Ignacio R. Morelle
2101c0e34d addon/mg: Remove static storage specifier from anonymous namespace members 2015-07-08 19:05:48 -03:00
Ignacio R. Morelle
a0345857c6 addon/mg: Make struct type name lowercase 2015-07-08 19:04:35 -03:00
Ignacio R. Morelle
b2717715f5 addon/mg: Remove underscore suffixes from public struct members 2015-07-08 19:04:35 -03:00
gfgtdf
ce8ef64191 remove a comment 2015-07-08 15:09:40 +02:00
gfgtdf
3dc1cd55ab Add a comment 2015-07-08 15:01:11 +02:00
gfgtdf
2e05fd3992 make config child_iterator a random access iterator
This is more efficient, specially when std::advance is used on these
iterators

Also this migth fix a bug related to
boost::iterator_range<config::const_child_iterator> on boost 1.57 and
later
2015-07-08 03:02:27 +02:00
gfgtdf
2d80c97b13 use synced choices for controller changes by wml
Using synced_context::ask_server_choice has some advantages over the
previous implementation:

Instead of calculating which client controls a side separately on each
client, we now calculate that on the server and send the result to the
clients. This makes it more robust against calculation mismatches on the
clients (OOS).

The mechanism which notifies the server about controller changes is more
robust because previously only the currently active side sent that message
to the server, but now all clients send that information to the server (and
the server ignores non-first notifications). Specially this fixes the rare
case that none of the clients control the currently active client during
that event (which can for example happen if the currently active side
disconnected from the game after the action was invoked but before the side
was modified on that client.).

We automatically get non-undoability (just like for random seed requests)
2015-07-08 03:02:26 +02:00
gfgtdf
3b01d92547 refactor random seed server choices
we add a more generic server choice mechnism. The plan is to use it also
for controller changes by wml.
2015-07-08 03:02:24 +02:00
Elvish_Hunter
947d39b522 UtBS: increased Garak's max experience to 1000 XP 2015-07-08 00:11:03 +02:00
Charles Dang
249aa23295 Move players_changelog entry from b888dd979767 to correct version 2015-07-07 14:59:55 +11:00
Charles Dang
f1c2178cd5 Move changelog entry from b888dd979767 to correct version 2015-07-07 14:55:22 +11:00
Charles Dang
d3113a9bd4 Merge pull request #414 from rjaguar3/bug23668
DM S19: Add defeat condition for losing last undead (bug #23668)
2015-07-07 13:55:43 +11:00
Ignacio R. Morelle
aecdbab096 Pass object by reference
Found by cppcheck.
2015-07-06 23:42:13 -03:00
Ignacio R. Morelle
926ba98d46 Add missing field from ctor initialization list
Found by cppcheck.
2015-07-06 23:40:30 -03:00
Ignacio R. Morelle
c76de34fe6 Use prefix instead of postfix increment/decrement
Found by cppcheck.
2015-07-06 23:40:30 -03:00
Ignacio R. Morelle
413d3528bd Use empty() method instead of size() for emptiness checks
Found by cppcheck.
2015-07-06 23:40:30 -03:00
Ignacio R. Morelle
ef0eb55f24 Use prefix instead of postfix increment/decrement
Found by cppcheck.
2015-07-06 23:40:30 -03:00
Ignacio R. Morelle
ed2a64fe26 Pass object by reference
Found by cppcheck.
2015-07-06 23:40:30 -03:00
Ignacio R. Morelle
ead94b399b Pass object by reference
Found by cppcheck.
2015-07-06 23:40:30 -03:00
Charles Dang
98c910e109 UtBS: saved maps in new format 2015-07-07 13:19:53 +11:00
Ignacio R. Morelle
2bc3d877e4 Add changelog entry to note util::strftime() bug is not harmless 2015-07-06 23:07:58 -03:00
Ignacio R. Morelle
cd2620e439 Fix end iterator dereference with specific util::strftime() input
A format string with a trailing '%' character at the end would cause an
implementation detail to dereference the end iterator of a string. Since
the underlying storage is a null-terminated string, this would be
harmless in practice.

Found by cppcheck.
2015-07-06 22:49:02 -03:00
Ignacio R. Morelle
ddde2a6d64 gui1: Elide pointless assignment
Found by cppcheck.
2015-07-06 22:38:02 -03:00
Ignacio R. Morelle
bcfdc85568 Use prefix instead of postfix increment/decrement
Found by cppcheck.
2015-07-06 22:31:24 -03:00