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
Guillaume Melquiond
86dce3e7cf
Made 'attack' a proper function.
...
Removed redundant parameter (the class fires WML event, so it has to
be the global one).
2009-08-05 06:39:16 +00:00
Tomasz Śniatowski
b46169639a
moved lobby-specific preferences...
...
...to a new lobby_preferences.hpp/cpp pair toreduce rebuild burden
when adding new preferences
renamed admin_authentication to parse_admin_athentication
renamed show_lobby_join to parse_should_show_lobby_join
2009-08-03 22:48:48 +01:00
Guillaume Melquiond
5e08ac6df4
Removed now useless end_level exception delaying.
2009-08-03 12:39:37 +00:00
Guillaume Melquiond
375bc7c3c5
Fixed units not being recruited in retail builds.
2009-07-29 07:14:41 +00:00
Alexander van Gessel
f6b6ebccd8
Split recruit_unit() into find_recruit_location() and place_recruit()
2009-07-29 02:48:33 +01:00
Tomasz Śniatowski
2df9b9a4db
add a diagnostic message in replay random seed handling
2009-07-28 13:56:55 +01:00
Tomasz Śniatowski
b99b888929
fix a typo
2009-07-19 22:11:03 +01:00
Tomasz Śniatowski
7327b9c0b2
serverside RNG - fix the guaranteed OOS on unit advancement after combat
2009-07-19 22:10:27 +01:00
Tomasz Śniatowski
6c82272234
Server side RNG, client part draft.
...
There are two different approaches here:
- in the AI code, the attack is queued, sent to the server and then
the attacking code waits for a new random seed o arrive, polling UI
events and syncing network in a loop.
- in the player code, the actual attak procedure is delayed until
after a new seed arrives by means of a callback that is called when
a seed message is received. This is potentially problematic as, for
example, commands need to be disabled across different scopes.
2009-07-19 22:09:31 +01:00
Guillaume Melquiond
cfbb191e88
Removed redundant parameters from check_checksums.
2009-07-19 07:49:00 +00:00
Guillaume Melquiond
59a15c5146
Removed redundant and useless parameters from do_replay.
2009-07-19 07:48:53 +00:00
Guillaume Melquiond
1af9fd88f0
Removed redundant parameters from do_replay_handle.
2009-07-19 07:48:49 +00:00
Guillaume Melquiond
71c7bc125b
Removed useless class verification_manager.
2009-07-19 07:48:46 +00:00
Mark de Wever
41338719be
replay header cleanup.
2009-07-18 19:24:20 +00:00
Mark de Wever
006f19c087
Remove an unused parameter.
2009-07-18 18:26:57 +00:00
Guillaume Melquiond
6dbbed3a96
Removed redundant parameters from move_unit.
...
Also fixed a data corruption if a unit changed side while moving.
2009-07-18 16:45:18 +00:00
Guillaume Melquiond
07e482b26f
Removed redundant parameters from recalculate_for and clear_shroud.
2009-07-18 15:41:04 +00:00
Mark de Wever
a5973f35c3
Remove an unused parameter.
2009-07-18 15:10:49 +00:00
Guillaume Melquiond
176bb4c3ce
Removed get_state_of_game.
2009-07-18 14:17:50 +00:00
Guillaume Melquiond
a098e20435
Removed constant parameter from labels.
2009-07-18 12:06:40 +00:00
Guillaume Melquiond
61d287fcfa
Removed redundant parameters from check_victory.
2009-07-18 12:06:31 +00:00
Guillaume Melquiond
941e519c06
Removed redundant parameters from dialogs::advance_unit.
2009-07-18 12:06:20 +00:00