407 Commits

Author SHA1 Message Date
Ignacio R. Morelle
d6df1e9850 Remove unused include 2012-02-29 09:02:36 +00:00
Mark de Wever
638a23afec Initialize all members. 2012-02-06 20:27:26 +00:00
Ignacio R. Morelle
6ca69b2df5 New year copyright update 2012-01-07 02:35:17 +00:00
Alexander van Gessel
509655682e Merge and update 2011-05-02T18:52:36Z!terraninfo@terraninfo.net from 1.8 branch
rework MP chat log as a GUI2 dialog with colored display of messages
2011-12-12 02:26:27 +01:00
Anonymissimus
7c45b41401 add a side_number key to sent [init_side] if --log-debug=network
(to make clear it's not used and should not)
2011-11-25 01:05:15 +00:00
Fabian Müller
c272984dc8 Don't try to add the leader specific recruit list from a null pointer.
Workaround for bug #18984
2011-11-20 03:55:44 +00:00
Fabian Müller
312d1116c0 Fix the second_unit support of recall actions during a replay. 2011-11-07 23:28:35 +00:00
Fabian Müller
c33446f715 fix bug #18931 and bug #18929
Makes the replay engine aware of the multiple leader recall/recruit stuff.
2011-11-07 18:23:48 +00:00
Fabian Müller
f10768bf75 Implemented the $second_unit being bound to the acting leader...
...in recruit/recall events.

LUA and WML connections to the feature are still missing.
2011-11-01 16:20:13 +00:00
Alexander van Gessel
81e0a2007f Revert token t_token commits from 2011-09-08T19:15:40Z!thonsew@yahoo.com on. 2011-10-10 03:43:29 +01:00
Thonsew
88b5546118 Attempt to fix static de-initialization problems.
Some compilers are calling destructors for static objects before other
static objects use them in their destructors.  This patch initializes
static t_interned objects with new and intentionally doesn't call
delete in order to guarrantee their existence throughout the static
de-initialization phase.  It creates a new function
generate_safe_static_const_t_interned for this purpose.  It might
address bug #18666, although I can not duplicate the crash with gcc on
fedora 15.
2011-09-20 21:21:31 +00:00
Thonsew
cdb129508d Fix implicit static cast...
...of config::attribute_value & to tstring & or t_token reference
causes crashes.  Some compilers were generating a temporary object and
binding a reference to the temporary when creating an implicit cast to
an attribute value.  I removed the implicit cast and replaced all (I
think) instances of the implicit cast with explicit 2 step operation.
This fixes bugs like bug #18663, bug #18684
2011-09-20 21:20:54 +00:00
Thonsew
9ce82aec1a Upgraded game_events.cpp...
...and files that interacted with game_events to use t_token in place
of std::string for config objects
2011-09-08 19:16:49 +00:00
Tommy Schmitz
fab7de4163 Made whiteboard plans visible to allied network players
Disabled undo while planning mode is active

Changed arrow constructor to be more RAII
2011-06-30 18:28:00 +00:00
Anonymissimus
ae4715a195 fixed usage of a t_string to describe the unit type...
...(fix for part #2 of bug #18160)
2011-06-05 01:51:10 +00:00
Anonymissimus
1d55660552 fixed an MSVC warning about unreachable code 2011-06-03 21:34:20 +00:00
Fabian Müller
386ffae069 Added recall filter to each unit.
Adjustments to the unit specific recruit list.
2011-05-27 03:36:26 +00:00
Bartek Waresiak
60a41ba7ed Fixed replay player bug: Team1 point of view now should work 2011-02-05 17:00:36 +00:00
Mark de Wever
ecbabea838 New year copyright update. 2011-01-01 15:57:50 +00:00
Guillaume Melquiond
390713c969 Fixed utterly broken RNG due to improper serialization of seeds.
(Issue spotted by isionous.)
2010-12-21 10:13:05 +00:00
Ignacio R. Morelle
d6a3de1938 Apply patch #2213 by stikonas, using file #11274 2010-11-21 01:56:29 +00:00
Alexander van Gessel
9a508b5730 Remove the 'gzipped' parameters from the network API.
ANA did not even implement binary WML.
2010-11-17 00:28:08 +01:00
Guillaume Melquiond
ec533c0727 Avoided comparing of config objects with zero. 2010-10-30 22:50:55 +00:00
Guillaume Melquiond
234abc7ed3 Fixed spurious error message flooding replays,
...since -1 means that the defender could not retaliate.
2010-09-11 19:32:51 +00:00
Guillaume Melquiond
eeb047de55 Fixed file headers so that they match the content of the COPYING file. 2010-09-01 21:12:38 +00:00
Guillaume Melquiond
db47ced634 Allowed [message] in start events for single player mode.
To avoid replay issues, it forcefully quits the game in multiplayer
instead of displaying a WML error and continuing.
2010-08-10 17:16:22 +00:00
Guillaume Melquiond
46ab9253dd Fixed compilation warning. 2010-08-10 12:08:15 +00:00
Jody Northup
4985f1cbe9 Persistent variables can now be retrieved from remote players...
...even when it is not their turn.
2010-08-10 10:48:40 +00:00
Guillaume Melquiond
5d6ffea210 Properly reverted 2010-08-04T12:54:31Z!upthorn@gmail.com so that the engine actuals. 2010-08-04 13:55:34 +00:00
Jody Northup
9434b3192e reverting the changes to mp_sync framework at silene's request. 2010-08-04 13:27:57 +00:00
Jody Northup
b584b3b7af fixed get_global_variable to use mp_sync framework,
...slightly modified mp_sync framework to allow for usage during
events that occur before state_of_game->phase() = PLAY
2010-08-04 12:54:31 +00:00
Mark de Wever
a99c78e0d8 Update doxygen comment.
The filename after the @file comment is optional (spotted by alink).
2010-07-26 21:32:18 +00:00
Guillaume Melquiond
3eb0788ae7 Moved MP synchronization framework to replay,
...so that it can be used elsewhere.
2010-07-26 10:44:15 +00:00
Guillaume Melquiond
9e2b470598 Generalized user input synchronization further. 2010-07-26 09:52:29 +00:00
Guillaume Melquiond
201d395d18 Generalized user input handling. 2010-07-26 08:13:44 +00:00
Guillaume Melquiond
d59e039aac Fixed handling of advance=true in [unstore_unit].
(Fix for bug #15560, patch #1610 by Icelus.)

The patch introduces several contexts describing which kind of RNG at
a given point of a game.
2010-07-25 16:33:50 +00:00
Guillaume Melquiond
ffba67f841 Avoided costly roundtrip through strings. 2010-06-12 18:58:22 +00:00
Ali El Gariani
51ab72860e Replace all uses of 'colour' by 'color' in code. 2010-06-03 01:47:06 +00:00
Alexander van Gessel
d2af7f1d5d Add 'immutable' key to [label], defaulting to true (bug #16078) 2010-05-30 05:30:44 +01:00
Guillaume Melquiond
95b52c541b Removed unused function replay::set_random_value. 2010-05-26 18:05:43 +00:00
Iurii Chernyi
b57c33e126 forward-port 2010-04-13T22:02:24Z!terraninfo@terraninfo.net to trunk 2010-04-13 22:11:04 +00:00
Alexander van Gessel
64db5cd41d Side-specific recall cost 2010-04-09 00:53:41 +01:00
Guillaume Melquiond
ff10146ffe Simplified code by removing string casts. 2010-04-05 06:01:45 +00:00
Guillaume Melquiond
961a4d4ccc Fixed out-of-bounds removal. Removed usage of config::get_children_deprecated. 2010-04-05 05:59:40 +00:00
Guillaume Melquiond
316aa7bac8 Fixed broken constness. Removed some usage of config::get_children_deprecated. 2010-04-05 05:59:37 +00:00
Guillaume Melquiond
0db47ab563 Restricted unit_map setting to unit_map itself. 2010-03-28 16:34:39 +00:00
Guillaume Melquiond
ad3ebbba05 Removed locations from unit maps so that they are not duplicated.
As a side effect, iterators became much nicer, e.g. usable in foreach.
2010-03-28 10:42:41 +00:00
Guillaume Melquiond
bd9937e53c Renamed config::get_children...
...so that people stop adding it again and again in new places.
2010-03-27 18:49:19 +00:00
Guillaume Melquiond
01e0010adf Removed hardcoding of boolean names when storing values into config object. 2010-03-27 10:59:17 +00:00
Iurii Chernyi
b0ddb7a9c1 fix a segfault on viewing certain replays...
...corrupted by MP connection problems
2010-03-21 00:19:30 +00:00