260 Commits

Author SHA1 Message Date
Eric S. Raymond
043c4f9fd3 Remove $Id$ cookies. 2013-03-26 21:41:37 -04:00
Anja Keicher
de5c19ea34 Removed filter to store all sides in carryover, not just active ones...
...to fix issue where sides that skip a scenario lose recalls and
gold. Fixing bug #20373 and duplicates #20455 and #20456
2013-02-26 13:15:30 +00:00
Boldizsár Lipka
eb1f002e81 Re-add era and modification events for each scenario in mp campaigns. 2013-02-07 18:16:39 +00:00
Mark de Wever
43b71f2ff0 New year copyright update. 2013-01-01 09:22:03 +00:00
Anja Keicher
8afdd54f5d Removing prestart events from snapshot and replay_start...
...to prevent refiring and duplicate units. Fixing bug #20272.
2012-11-07 19:28:44 +00:00
Anja Keicher
d7a35f9034 Added some data to the config sent from multiplayer host...
...to clients on start of new campaign scenario. Fixes bug #20262 and
bug #20261

Removed some commented code.
2012-10-29 17:17:07 +00:00
Anja Keicher
29f815482d Fixed bug #20158
Separated persistent and transient fields in end_level_data.
2012-09-10 14:33:34 +00:00
Fabian Müller
c4b53c4731 Removed the support for the [map] tag again,
this fixes bug #20105
2012-09-08 20:39:50 +00:00
Sergey Popov
f7fb36d44b Fixed compile with CXX0X defined 2012-09-04 14:23:21 +00:00
Mark de Wever
88b451d51d Remove a useless cast.
Detected by the upcoming gcc-4.8.
2012-08-25 16:14:56 +00:00
Mark de Wever
07799ed664 Remove a useless cast.
Detected by the upcoming gcc-4.8.
2012-08-25 16:14:54 +00:00
Anja Keicher
9d0ca55d9b Moved difficulty, current and next scenario info...
...to new carryover_info and game_data
2012-08-20 17:22:47 +00:00
Anja Keicher
8f6a3a5490 Changed the structure of savegames to only contain the data necessary.
Old savegames are loaded via a conversion method.
2012-08-15 12:42:56 +00:00
Anja Keicher
c63e52ca14 Changed the way carryover info is stored in gamestate
Made wml_menu_items private
2012-08-01 21:20:05 +00:00
Anja Keicher
739e91ed2b Fixed custom menu items breaking in savegames...
...and warning about duplicate items
2012-07-26 21:07:34 +00:00
Anja Keicher
c17d84b12f Moved in-game data to make sure it can't be accessed out of game 2012-07-26 15:18:08 +00:00
Sergey Popov
6b6eafb213 Use BOOST_FOREACH directly instead of #define foreach BOOST_FOREACH
The define is extremely unreliable, will break compile with boost >=
1.50 and upstream can't fix issues with it, see
https://svn.boost.org/trac/boost/ticket/6131
2012-07-07 00:49:45 +00:00
Anja Keicher
b85f0fc3fb Fixed compatibility bug with old singleplayer campaign savegames 2012-06-29 22:59:23 +00:00
Anja Keicher
e6f0fe42bc Scenario transition refactoring
Carryover gold and recalls handled out of game
2012-06-27 09:36:08 +00:00
Anja Keicher
823ddd6622 Fixed issue with old savegames and victory reports
Refactoring still WIP
2012-06-22 18:34:18 +00:00
Anja Keicher
6cc603c9d9 Scenario transitions refactoring
Moving gold and recall handling from inside the game to outside. Gold
and recalls are handled and stored as carryover info rather than as
snapshot.
2012-06-20 23:45:30 +00:00
Fabian Müller
9c9a8ad877 Fixed missing attributes usage and border_size...
...when the map is autogenerated by the usage of the generate_map
attribute.

This fixes bug #19642
2012-05-28 17:55:58 +00:00
Fabian Müller
ff243c7036 Removed left over debug output. 2012-02-23 21:47:45 +00:00
Fabian Müller
a8aa81f338 Now realy introduced the new map format. 2012-02-23 02:39:58 +00:00
Jérémy Rosen
551946d6c7 save_index refactoring patch #3125 by Oleg Tsarev 2012-02-18 17:57:20 +00:00
Ignacio R. Morelle
6ca69b2df5 New year copyright update 2012-01-07 02:35:17 +00:00
Anonymissimus
2e80ba9f31 created play_controller::get_end_level_data_const() returning a const ref
and converted get_end_level_data() calls where appropriate so that
it's easier to sort out where it can be modified and where not.
2011-10-23 22:56:34 +00:00
Anonymissimus
499b1ef292 introduced [endlevel]replay_save=yes|no parameter
(patch #2820 by SigurdTheDragon, FR bug #18026)
2011-08-08 15:37:46 +00:00
Mark de Wever
287ce71cfd Remove a variable which is only assigned.
Issue found by cppcheck.
2011-07-31 16:56:46 +00:00
Iurii Chernyi
c57467034e Patch #2610 by Zaroth: default turn limit to -1 when reading WML,
...plus changes for story-only campaign scenarios
2011-03-29 21:50:13 +00:00
Mark de Wever
6dab616793 Remove the sticky exception class.
All sticky exceptions are replaced with the lua jailbreak exceptions.
The code has been lightly tested, too many possibilities to test them
all. Don't expect breakage but mainly the load code looks tricky with
the global variables.
2011-03-27 20:55:35 +00:00
Nils Kneuper
a9c341e278 "tiny gui support"-removal part 1:
removed all the if(n)defs from the sources (please review that I got
everything right!)

TODO: remove from build systems and data/
2011-02-12 16:20:24 +00:00
Mark de Wever
ecbabea838 New year copyright update. 2011-01-01 15:57:50 +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
Ignacio R. Morelle
0b0ef8a5e5 Fix a mistake in 2010-11-07T21:05:35Z!shadowm@wesnoth.org 2010-11-07 21:06:34 +00:00
Ignacio R. Morelle
4a01577138 Convert the End-of-scenario dialog for MP campaigns to GUI2 2010-11-07 21:05:35 +00:00
Ignacio R. Morelle
832e8701ec Mark the "Game Over" screen as translatable 2010-11-07 21:00:48 +00:00
Guillaume Melquiond
ec533c0727 Avoided comparing of config objects with zero. 2010-10-30 22:50:55 +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
a18869dce0 Ensured exceptions are unstickied. (Fix for bug #16536.)
One of the changes only is needed, but all of them have been added to
be on the safe side.
2010-08-27 18:33:39 +00:00
Mark de Wever
7a27f99716 Removed the statitics upload code. 2010-08-27 18:07:55 +00:00
Jody Northup
eca9d94e2b more complete transaction handling for persistent variables. 2010-08-15 23:57:26 +00:00
Alexander van Gessel
be1db44f10 Rename incorrect_map_format_exception to incorrect_map_format_error 2010-08-03 15:58:46 +01:00
Alexander van Gessel
f876d1705c Make t_translation::error and incorrect_map_format_exception...
...inherit from game::error
2010-08-03 15:36:08 +01: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
Ali El Gariani
c7c222380d Clean the use of @todo for Doxygen
Use ///@todo bla   or  /** @todo bla */ 
with lowercase and no colon after todo
2010-07-26 00:31:55 +00:00
Guillaume Melquiond
3d89383678 Modified handling of [lua] tags at toplevel,
...so that they are no longer converted to preload events. Instead,
they are extracted and executed at preload time.
2010-07-18 15:21:41 +00:00
Guillaume Melquiond
1ad85c2afe Added detection for server replays,
...as they are missing the core [lua] tags. (Fix for bug #16243.)
2010-07-18 14:12:53 +00:00
Alexander van Gessel
e5dc12a010 Remove 1.6->1.8 compatibility code...
...(loading lua wml-tags if not specified in save)
2010-05-26 02:09:48 +01:00
Guillaume Melquiond
76c34a23d3 Modified WML attributes so that they are stored with...
...smaller effective types when they are not translatable.

This patch considerably reduces the memory footprint of WML and speeds it up.

It should not change any WML behavior, except for a few corner cases
detailled below:

- "off" is no longer a synonym for "no" (it wasn't used anyway),

- _"42" is no longer an integer,

- untranslatable "true" and "false" are stored as booleans, hence
  displayed as "yes" and "no",

- "042" is now understood as octal notation (hence 34) rather than decimal,

- hexadecimal notation "0x42" is now recognized.
2010-05-24 08:01:31 +00:00