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
Mark de Wever
76815744fe
Fix logging replay crashes.
...
Fixes bug #15601 , applies patch #1525 .
2010-03-18 20:16:07 +00:00
Iurii Chernyi
c546e8f5dc
Fix bug #14114 : checksum operations fail against certain scenario events.
...
Patch #1538 by lfernando
2010-03-18 17:07:09 +00:00
Mark de Wever
92f5f92ce5
New year copyright update.
2010-01-01 13:16:49 +00:00
Guillaume Melquiond
0f42610295
Simplified handling of unit types.
...
As a side effect, unit animations no longer appear as leaked for Valgrind.
2009-12-23 13:09:53 +00:00
Mark de Wever
b6b94514b4
Remove unneeded includes.
2009-12-05 21:25:18 +00:00
Mark de Wever
2cd71f2fa6
Pre instead of post increment a variable.
...
Issue found by cppcheck.
2009-11-27 23:00:10 +00:00
Mark de Wever
d2814da9d7
Pre instead of post increment a variable.
...
Issue found by cppcheck.
2009-11-27 22:59:26 +00:00
Ali El Gariani
4a6fbd5565
Simplify one unit constructor by removing most of its messy bool parameters.
...
Also make :create spawn (randomly) male and female. I noticed an
error causing plague to only create male. I keep that behavior for the
moment but make it more clear.
2009-10-08 23:44:56 +00:00
Gunter Labes
5efecdb532
removed a check for standard events which aren't recorded...
...
...in replays this way anymore
2009-10-07 12:59:25 +00:00
Mark de Wever
7e1bb00953
Pass parameter by const ref instead of const value.
...
Issue found by cppcheck.
2009-10-02 19:25:20 +00:00
Gunter Labes
ae7aa4aed7
renamed replay::throw_error() to replay::process_error()...
...
...to better reflect that it doesn't necessarily throw an exception
2009-10-01 08:08:09 +00:00
Gunter Labes
997a7da512
unified continue_replay() and process_oos()
...
made process_oos() a virtual function of play_controller with a
default implementation (probably not so useful) and two special
implementations in playmp_controller and replay_controller
call process_oos() directly from replay::throw_error() so we can
continue exactly where we left off if the user decides so and don't
have to catch replay::error everywhere just to possibly rethrow it
anyway
2009-10-01 08:08:02 +00:00
Gunter Labes
297b215aeb
replay::throw_error() doesn't necessarily throw an exception,
...
...make sure calling code handles that
2009-10-01 08:07:38 +00:00
Guillaume Melquiond
0d92ce900b
Removed code/data duplication of end_level...
...
...handling between actions.cpp and play_controller.cpp. (Fix for bug
#14160.)
2009-09-20 12:54:05 +00:00
Guillaume Melquiond
d1c65af0a2
Fixed dependencies.
2009-09-12 14:20:52 +00:00
Mark de Wever
f4b00d8b17
Strip trailing whitespace.
2009-09-06 10:05:07 +00:00
Jörg Hinrichs
d535845b5b
Fix bug #13268 (save corruption through undo/redo of recalls):
...
...Part 2. Bug should be completely fixed now.
2009-09-04 07:01:25 +00:00
Jörg Hinrichs
7bac6cc6b2
Fixing bug #13268 , part 1:
...
...Switching recording of recalls from index position to unit id.
2009-09-03 22:54:46 +00:00
Mark de Wever
671b0b256c
Strip trailing whitespace.
2009-08-29 18:46:38 +00:00
Gregory Shikhman
6e3ec07d96
Changed upload_log to record data into replays...
...
...under the [upload_log] tag. Log events can be added throughout the
code at all times by using the new replay::add_log_data()
functions. Changed the --label code to use this new
functionaity. Added this functionality to src/ai/testing.cpp under the
[ai_log] category.
2009-08-19 22:52:28 +00:00
Gregory Shikhman
b1ff37b8d2
Added a new add_log_event() function...
...
...to record variables that should be put into the upload log.
Changed --label code to use it.
2009-08-19 14:45:10 +00:00
Iurii Chernyi
ee6b314da6
WIP on show_ai_moves
2009-08-15 19:59:48 +00:00
Mark de Wever
fe5d7d84c4
snprintf -> str_cast.
2009-08-09 08:36:37 +00:00
Ignacio R. Morelle
270319e94b
Use %zd instead of %lu, the latter caused warnings on 32-bit platforms...
...
%zd should work for any definition of size_t.
2009-08-09 00:43:32 +00:00
Ignacio R. Morelle
08eea8ead7
Fix a 64-bit specific gcc/glibc warning concerning usage of printf...
...
...(%d being used for a size_t variable instead of %lu).
2009-08-09 00:31:36 +00:00
Sergey Popov
09577dd018
Fixed compiler error introduced by 2009-08-08T22:26:14Z!cornmander@cornmander.com
2009-08-08 23:49:49 +00:00
Gregory Shikhman
ca63e09cf6
Added detailed kill-event logging to replays.
...
initial work on parsing those events from replays into
upload_logs. added hook read_replay() to read replays after scenario
end but before the upload_log deconstructor is called.
2009-08-08 22:26:14 +00:00