61519 Commits

Author SHA1 Message Date
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
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
Ignacio R. Morelle
10bb87535f gui2: Initialize variables
Found by cppcheck.
2015-07-06 22:13:28 -03:00
Ignacio R. Morelle
a126563da1 i18n: Use ctor initialization list instead of statement in ctor body
Found by cppcheck.
2015-07-06 21:54:50 -03:00
Ignacio R. Morelle
89879e67c6 Use prefix instead of postfix increment/decrement
Found by cppcheck.
2015-07-06 21:54:18 -03:00
Ignacio R. Morelle
6de490dbf0 ai: Use ctor initialization list instead of statements in ctor body
No functional changes.

Found by cppcheck.
2015-07-06 21:39:22 -03:00
gfgtdf
86809349b5 fix unsynced wml menu items 2015-07-06 23:26:22 +02:00
gfgtdf
fc220fee26 make units advancements modifyable in lua.
http://gna.org/bugs/?23677

units advancements is an array of wml tables.

This also adds template lua_push/lua_check functions wich also accept
vectors or similar. The file scripting/push_check.hpp was written using msvc
which implements look-up in template functions differently so it might be
necessary to fix it for other compilers by adding forward declarations of
those template functions.
2015-07-06 23:26:21 +02:00
gfgtdf
70a83bafe8 add -, + and [] to child config iterators. 2015-07-06 23:26:19 +02:00
aquileia
b1dac5dfce vcproj: Add external/include and external/lib
As the vcproj format is poorly documented, we previously couldn't find an option to pass compiler/librarian/linker dependencies without manually adding them in the menu. After installing VC9, I found an option that is correctly ported to vcxproj (the new format since VC10) and allows to specify these additional dependencies.
2015-07-06 00:19:05 +02:00
Charles Dang
89cc9ac49f tcampaign_dialog: remove excess borders 2015-07-06 02:53:22 +11:00
Ignacio R. Morelle
48ffe53cfe Attempt to fix a "No previous prototype for function" error
Found by ancestral on Apple OS X.
2015-07-05 03:43:27 -03:00
ln-zookeeper
4e7e00d2d5 New dwarf hit and die sounds 2015-07-04 18:18:59 +03:00
Nils Kneuper
ceb693380f updated Galician translation 2015-06-30 11:20:02 +02:00
Ignacio R. Morelle
23d4367f95 Purge RELEASE_NOTES 2015-06-29 20:40:36 -03:00
gfgtdf
5116ce72bc Update RELEASE_NOTES 2015-06-28 20:41:27 +02:00
Gregory Gauthier
31e9f234df DM S19: Replace [if] with [filter_condition] in undead death event 2015-06-27 22:04:12 -04:00
gfgtdf
19dab7c63d Update changelog 2015-06-28 02:53:46 +02:00
gfgtdf
221bd15c6b don't use era_blank in tutorial 2015-06-28 02:37:50 +02:00
Ignacio R. Morelle
0d71489ee7 Bump version 2015-06-27 20:59:58 -03:00
Gregory Gauthier
b888dd9797 DM S19: Add defeat condition for losing last undead (bug #23668) 2015-06-27 19:31:27 -04:00
Ignacio R. Morelle
18763934cd Version 1.13.1 1.13.1 2015-06-27 20:22:06 -03:00
Ignacio R. Morelle
c16673c6ce pot and documentation update 2015-06-27 20:20:43 -03:00
Ignacio R. Morelle
de176435b1 Several changelog fixes 2015-06-27 20:14:54 -03:00
Ignacio R. Morelle
6aa55157e7 Russian translation update 2015-06-27 19:54:37 -03:00
Ignacio R. Morelle
4863fb1ca9 Suppress uninit variable warnings in xBRZ code with gcc 4.8 too 2015-06-27 19:30:12 -03:00