Mark de Wever
b6b94514b4
Remove unneeded includes.
2009-12-05 21:25:18 +00:00
Ali El Gariani
6e875ac3ba
clean some includes
2009-12-05 04:34:45 +00:00
Mark de Wever
1b201406f3
Pre instead of post increment a variable.
...
Issue found by cppcheck.
2009-11-27 22:59:22 +00:00
Guillaume Melquiond
8ba25ff3a1
Removed useless translatable string. Simplified code a bit.
2009-11-12 17:21:12 +00:00
Eugen Jiresch
816b0fd75f
when loading a game, the gamestate is now erased...
...
...when the load_game_exception is caught, as opposed to before it is
thrown. fixes bug #14460
2009-10-12 16:27:56 +00:00
Gunter Labes
8ca29c4623
hand the CVideo reference around again...
...
...since we do sometimes save games outside of a scenario where
resources::screen is invalid
fixes bug #14457 : segfault after a :cl
2009-10-06 18:47:25 +00:00
Gunter Labes
c51fdceb1d
removed globally available parameters from oos_savegame() and...
...
...save_game_interactive()
2009-10-01 08:08:16 +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
Guillaume Melquiond
e8e238e6f3
Prevented linger mode from exiting after a few seconds only.
...
(Fix for bug #14252.)
2009-09-23 19:57:27 +00:00
Jörg Hinrichs
c04b40db46
Fixes bug #14241...
...
...(mp campaigns: timer settings do not carry over to next
scenario). This (again) breaks mp savegame compatibility with all
previous releases. Campaigns shouldn't be affected.
2009-09-22 17:52:33 +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
34cf9742f0
Removed last remnants of WML markup.
2009-09-12 08:35:21 +00:00
Iurii Chernyi
fa285e3c0e
Fix bug #14160 (in not long-term-optimal way).
...
Fixes issues with LoW::7 gold carryover.
2009-09-09 08:03:59 +00:00
Ali El Gariani
550280a390
Resolve blocked gotos (bug #13876 ), and try to avoid slow queue.
...
Seems to work nicely, but complex cases will maybe need more
testing/tweaking.
2009-09-06 20:13:19 +00:00
Mark de Wever
f4b00d8b17
Strip trailing whitespace.
2009-09-06 10:05:07 +00:00
Gregory Shikhman
6ae2943df6
Removed --new-uploader and associated code since new uploader is now default.
2009-09-03 13:03:51 +00:00
Gregory Shikhman
c8db169bed
Fixed bug introduced in 2009-08-10T06:32:31Z!cornmander@cornmander.com:
...
upload log always contains a [quit] child, even during victory and draw.
2009-09-02 13:18:36 +00:00
Eugen Jiresch
b555c8d6a1
added namespace 'savegame' for savegame related code
2009-09-01 12:49:15 +00:00
Mark de Wever
671b0b256c
Strip trailing whitespace.
2009-08-29 18:46:38 +00:00
Ali El Gariani
a879b7adad
Add basic support to define waypoints via a hotkey "Add waypoint"
...
Seems to work fine, but no visual indication yet (besides the bended path)
Don't affect the normal pathfinding interface, so this WIP is safe.
2009-08-28 23:49:27 +00:00
Iurii Chernyi
963f73ff2f
renamed tod_manager::is_turns_left to tod_manager::is_time_left
2009-08-21 20:38:50 +00:00
Iurii Chernyi
4319830a5f
renamed tod_manager::is_time_not_over() to tod_manager::is_turns_left
2009-08-21 19:52:49 +00:00
Iurii Chernyi
d8e8317150
allow 'time over' handling to take into account...
...
...the possibility of changing the number of turns in the 'time over'
event handler
2009-08-20 17:20:36 +00:00
Guillaume Melquiond
548da83dfb
Added a check for a custom end_level...
...
...before announcing a defeat on time over. (Fix for bug #14140.)
2009-08-16 22:29:46 +00:00
Guillaume Melquiond
b3653cb9a2
Removed end level triggering end turn.
2009-08-11 09:55:36 +00:00
Gregory Shikhman
189e521ae9
Enabled log uploads for ai vs. ai multiplayer matches...
...
...(logs are still incomplete, however). refactored
read_replay(). Wrote new upload_log.start() without deprecated
parameters.
2009-08-10 06:32:31 +00:00
Iurii Chernyi
0abf93d7f3
removed prepare_move from formula_ai, it is not needed now
2009-08-08 18:25:46 +00:00
Eugen Jiresch
c1158926fa
renamed 'can_recuit' to 'previous_recruits' in savegameWML for more clarity
2009-08-04 09:12:30 +00:00
Guillaume Melquiond
5e08ac6df4
Removed now useless end_level exception delaying.
2009-08-03 12:39:37 +00:00
Guillaume Melquiond
39a8620156
Moved end_level to the same mechanism as end_turn.
2009-08-03 12:39:32 +00:00
Eugen Jiresch
54a7365dd7
removed level_cfg_, map_ and tod_manager_ members from game_savegame
2009-08-03 10:21:14 +00:00
Eugen Jiresch
24ad74c6da
removed teams_ and units_ members from game_savegame,
...
...moved corresponding parts of building the snapshot to
play_controller::to_config()
2009-08-03 09:00:38 +00:00
Gregory Shikhman
7944856c2f
Added map data to the upload log.
2009-07-31 18:12:46 +00:00
Alexander van Gessel
fb35ee2e6b
Clean up some unneeded try-catch statements.
2009-07-27 03:55:57 +01:00
Alexander van Gessel
3c5e5e432a
Make [end_turn] work in new turn, side turn and turn refresh [event]s again.
2009-07-27 03:28:47 +01:00
Alexander van Gessel
0af0bef3f7
Remove unneeded try-catch.
2009-07-27 03:28:38 +01:00
Alexander van Gessel
0f3ef4dd75
Rewrite [end_turn] to end the turn after the event has finished.
2009-07-26 15:07:44 +01:00
Eugen Jiresch
95ac3fdf01
simplified storing of carryover information in game_state.snapshot
2009-07-22 15:40:14 +00:00
Eugen Jiresch
d4a9832ce6
fixed persistence of teams for scenarios with 0 teams
2009-07-22 13:19:58 +00:00
Eugen Jiresch
0660293334
removed game_state::read_player and game_state::load_recall_list
2009-07-21 10:01:24 +00:00
Eugen Jiresch
6a7f8f49b0
removed references to player_info from playsingle_controller.cpp
2009-07-20 15:02:20 +00:00
Guillaume Melquiond
59a15c5146
Removed redundant and useless parameters from do_replay.
2009-07-19 07:48:53 +00:00
Guillaume Melquiond
7d38428885
Removed redundant parameters from turn_info.
2009-07-19 07:48:43 +00:00
Mark de Wever
006f19c087
Remove an unused parameter.
2009-07-18 18:26:57 +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
Eugen Jiresch
55ee2e0059
removed some references to player_info.gold
2009-07-10 16:35:06 +00:00