866 Commits

Author SHA1 Message Date
Guillaume Melquiond
67c3f39510 Removed usage of config::get_children. 2010-03-27 18:48:33 +00:00
Guillaume Melquiond
01e0010adf Removed hardcoding of boolean names when storing values into config object. 2010-03-27 10:59:17 +00:00
Tomasz Śniatowski
02bef46e0b Make the titlescreen play more than just the main menu song,
...fixing fr / bug #15669

The playlist is taken from a new [titlescreen_music] tag, which has
been set to default_playlist + main menu song

Note that music will always restart with the main_menu theme when
going back into the titlescreen e.g. from the editor, it'd be
difficult otherwise to make it always start with main_menu.ogg on
startup.
2010-03-22 21:37:47 +01:00
Alexander van Gessel
0e02d1d762 Remove unneeded members of game_controller 2010-03-14 19:27:59 +01:00
Alexander van Gessel
4345f2cf13 Move detect_video_settings() into preferences_display 2010-03-14 19:26:42 +01:00
Iurii Chernyi
707333a374 do not turn debug in MP games if wesnoth is started with -d.
Later, we also need to add a warning chat message if someone is using
debug in MP game. This amends patch #1392
2010-02-14 16:56:48 +00:00
Alexander van Gessel
502256068d Keep DEBUG_MODE defined when playing multiplayer,
...to allow the filtering of experimental/debug-purposed multiplayer content
2010-02-08 16:04:14 +01:00
Mark de Wever
c4326a5fcf Proof of concept to translate network errors.
This way network errors can be shown localized, after the string freeze
is lifted it should be possible to translate more strings. Strings with
variables can't be translated this way.

Changed the string in network.cpp to one which is already in the
translation database (so this commit shouldn't break the string freeze).
Tested with the German translation and the connection error is now shown
in German.
2010-02-08 10:07:33 +00:00
Alexander van Gessel
584ec8bfc1 Make the EXPERIMENTAL flag also work for GUI2 WML 2010-02-07 16:47:50 +01:00
Alexander van Gessel
50eeeaeeb7 Move EXPERIMENTAL and DEBUG_MODE defines to the right function.
(fix bug #15204)
2010-02-07 16:27:09 +01:00
Guillaume Melquiond
cd1aa3aa07 Reverted commit 2010-02-07T14:55:39Z!ai0867@gmail.com further,
...so that error messages are actually displayed.
2010-02-07 15:16:29 +00:00
Alexander van Gessel
3e1fe2ab70 Don't reload things if you're going to exit anyway 2010-02-07 16:08:45 +01:00
Alexander van Gessel
f8d549e2c4 Don't clear the defines prior to starting the test scenario, unless needed 2010-02-07 15:55:39 +01:00
Mark de Wever
1d98f5c3bf Make a member function a const member function.
Issue found by cppcheck.
2010-01-26 21:56:06 +00:00
Eric S. Raymond
e8cdbf26c4 -DEXPERIMENTAL now sets an EXPERIMENTAL #define in WML. 2010-01-26 03:33:27 +00:00
Jörg Hinrichs
1281a02262 Applying patch #1392 (Debug mode deactivation in multiplayer mode) 2010-01-16 19:50:20 +00:00
Mark de Wever
980dd1b790 Clean up includes due to settings changes. 2010-01-11 22:11:12 +00:00
Mark de Wever
1b15ee29fb Convert some old gui stuff to new.
More old style dialogs to the new style function calls.
2010-01-03 13:36:40 +00:00
Mark de Wever
92f5f92ce5 New year copyright update. 2010-01-01 13:16:49 +00:00
Guillaume Melquiond
95dd5d7fc6 Factored code for testing resolutions. 2009-12-30 18:26:28 +00:00
Guillaume Melquiond
6f9c1f47d1 Removed spurious caret from loading error messages. 2009-12-25 09:49:05 +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
Guillaume Melquiond
61f5727523 Partly fixed compilation issues with ICC,
...including some real bugs in the code.
2009-12-18 08:08:48 +00:00
Ali El Gariani
bd77cf5580 better constness control on where we modify the main config object 2009-12-04 22:37:33 +00:00
Ali El Gariani
e3b61579f0 Cache the parsing of global terrain rules during same campaign/MP.
This shorten the "Initializing display" phase (except the first, of
course).
2009-12-04 05:40:44 +00:00
Guillaume Melquiond
b3e24d2050 Removed code related to dummy locales. 2009-10-31 19:06:43 +00:00
Ignacio R. Morelle
7ad48bcd64 Deliberately leave the --new-storyscreens (currently useless)...
...switch undocumented; the code can be removed later.
2009-10-25 17:33:00 +00:00
Jörg Hinrichs
6dde7cb986 Fixes bug #14058 ("The file you tried to load is corrupt"),
...bug #13764 ("The file you have tried to load is corrupt" dialog
that's impossible to close) and bug #14438 (can not cancel loading of
older version savegame).
2009-10-24 23:35:17 +00:00
Gunter Labes
5aef27579f consistently return 1 on initialization errors 2009-10-20 19:23:46 +00:00
Alexander van Gessel
ae126bb539 Catch std::exception too, so we get more information than "unknown error" 2009-10-20 19:52:36 +01:00
Gunter Labes
c4f28eca1a consistently return 2 on commandline argument errors 2009-10-20 18:06:16 +00:00
Mark de Wever
63408f2ac8 When an addon has invalid markup show an error.
Espreon discovered the issue with his addon.
2009-10-10 11:12:02 +00:00
Jörg Hinrichs
b3b0b24cae Fixes a bug of not returning to the title screen...
...when watching a replay and cancelling the load-game dialog.
2009-09-22 17:55:28 +00:00
Mark de Wever
e9334cb661 Initialize the new event handler.
Since the handler doesn't do much yet the change should not change any
behaviour.
2009-09-20 15:23:43 +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
Eugen Jiresch
b555c8d6a1 added namespace 'savegame' for savegame related code 2009-09-01 12:49:15 +00:00
Mark de Wever
46f11ec4db Initialize all members. 2009-08-30 13:42:44 +00:00
Mark de Wever
671b0b256c Strip trailing whitespace. 2009-08-29 18:46:38 +00:00
Ali El Gariani
639057417b Fix a typo in 2009-08-08T11:14:58Z!kailoran@gmail.com 2009-08-28 22:57:10 +00:00
Jörg Hinrichs
6aa660a77a Fixes a bug, where ingame loading of a savegame...
...causes loading that savegame automatically again when returning to
the title screen.
2009-08-24 22:09:13 +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
Gregory Shikhman
e3dcb3794a Added new --label parameter to allow grouping ai statistics...
...by label. Reenabled log deletion after upload.
2009-08-18 07:10:04 +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
Tomasz Śniatowski
1a934ac94b rename editor2 -> editor. Old editor is long dead, long live the new editor! 2009-08-08 12:14:58 +01:00
Gregory Shikhman
3254edeb90 Fixed the SDL_VIDEODRIVER envvar not being read properly...
...due to keeping a pointer of a stack variable. Added a static
keyword to the 'opt' variable.
2009-08-05 07:53:40 +00:00
Ignacio R. Morelle
0d9c45f06b Fix a typo in an error message string that is displayed to users.
I'm considering making localization possible too...
2009-08-02 16:42:48 +00:00
Gregory Shikhman
1d41d00f57 Added new --new-uploader flag for testing uploader code changes...
...in development.

Added uploader_settings namespace to support the new flag. Added
information on --new-uploader to --help. Added "unknown" platform to
wesnoth log uploads in case the platform is not detected instead of
leaving the parameter undefined as it is now. Fixed incorrect linewrap
for --help documentation on --screenshot flag.
2009-07-31 00:52:52 +00:00
Tomasz Śniatowski
abcb7175b4 ensure the static-init recorder replay object gets a proper random seed 2009-07-28 13:56:17 +01:00
Tomasz Śniatowski
247176eedd make F5 in title screen flush image cache in addition to reloading config 2009-07-26 12:05:38 +01:00