Commit Graph

47209 Commits

Author SHA1 Message Date
Thonsew
4601025561 Fix bug #18663
t_string & to a config::attribute_value was binding to a temporary copy.
2011-09-16 19:30:15 +00:00
Thonsew
09268be31e Added set_levels_of_recursion to pretty printers
Added help function to wesnoth_gdb for the pretty printers.

Usage from within gdb:

    python wesnoth_gdb.help()
2011-09-16 19:30:08 +00:00
Thonsew
64e01de038 Fixed loading saved games without replays, which were being ignored 2011-09-16 19:30:01 +00:00
Thonsew
b60f39b0ec Fixed bug #18649 Trying to load game causes segfault.
The game and their summaries were de-coupled.  I placed them in a
single structure to guarantee correspondence.
2011-09-16 12:28:43 +00:00
Thonsew
03bcf5a77c Reverted wml parsing error behavior to sending a console log warning 2011-09-16 12:28:37 +00:00
Thonsew
d61ec9668c Updated pretty printers
1. Added import os for installations where it is not a default

2. Improved check for empty unordered_map

3. Moved strip_type to its own file
2011-09-16 12:28:30 +00:00
Steven Panek
a38a7712ab Updated the British English translation. 2011-09-16 00:14:37 +00:00
Steven Panek
a1498f5ef6 Updated the British English translation. 2011-09-16 00:14:13 +00:00
Thonsew
235760192b Fixed handling of force_valid in variable.cpp...
...to correctly account for the difference between created array and
plain variables.
2011-09-15 20:17:03 +00:00
Thonsew
28e92236ca Moved the Mandatory WML child exception...
...back into the object file where it belongs.  It is faster to attach
a breakpoint to, because it isn't inline.
2011-09-15 20:16:57 +00:00
Thonsew
38c351d523 Created gdb pretty printers for wesnoth data types...
...t_interned, t_token, t_string, config and config::attribute_value.

Create pretty printers for boost::unordered_map.
2011-09-15 20:16:48 +00:00
Anonymissimus
cad4b5e5a5 changelog update 2011-09-15 19:59:09 +00:00
Anonymissimus
af5947956b added support for [enemy_of]<SSF> to SSF 2011-09-15 19:58:52 +00:00
Anonymissimus
d93c8c5c54 added support for SSF to SUF via a [filter_side] subtag 2011-09-15 19:58:33 +00:00
Anonymissimus
ce596164bf insert missing helptip + tooltip (fix for bug #18660) 2011-09-15 19:25:09 +00:00
Nils Kneuper
5eca045108 updated Czech and Galician translation 2011-09-15 19:03:08 +00:00
Anonymissimus
943be2ca8f fixed and MSVC warning about unreachable code
thonsew: You are sure it's a gooc idea to throw such a lot from here ?
Since that line is clearly not the only one which gets
skipped. WRN_NGs are emitted to the console in any case, even in
normal play without debug mode or log domains set.
2011-09-14 16:11:06 +00:00
Thonsew
9391bd4dc8 [[Improvements to WML error handling]]
1. Fixed some Mandatory WML child missing errors due to parsing errors
when new t_token parsing was added to variable_info.

2. Upgraded all WML errors to console errors to increase their visibility.
2011-09-14 09:57:39 +00:00
Thonsew
102b1cdd16 Modifed wml_syntax_error to handle...
...any type static_castable to std::vector<t_token> in generating an
error message for WML errors.
2011-09-14 09:57:33 +00:00
Thonsew
9a9162f653 Modifed config::invalid to be a pointer to NULL...
...to prevent recursive explosion in gdb backtrace.  This will make
debugging easier.
2011-09-14 09:57:25 +00:00
Thonsew
efe2f352e0 Modified wesnoth -t test scenario.cfg...
...to check for the existence of an array variable before checking for
its element existence.
2011-09-14 09:57:19 +00:00
Ignacio R. Morelle
75dcb4e8b1 Changelog formatting 2011-09-14 06:52:23 +00:00
Sytyi Nick
32616a047e Removed unary and plural forms in error messages.
(No need until messages are not translatable )
2011-09-14 04:59:29 +00:00
Ignacio R. Morelle
d64927bf9c wmllint: Fix abnormal behavior on #ifver/#ifnver...
...directives creating false positives

See also: http://forums.wesnoth.org/viewtopic.php?f=21&t=34779
2011-09-13 23:04:21 +00:00
Steven Panek
0f1c29df42 Put the old schedule back... guarded. 2011-09-13 17:37:21 +00:00
Nils Kneuper
c3bfb0ca63 updated Galician translation 2011-09-13 13:07:53 +00:00
Sergey Popov
ba1d8b9f3c Fix bug #18630
Perform download progress computation in floats to avoid integer overflow at
around 40Mb on 32-bit architectures.
2011-09-13 12:16:31 +00:00
Sergey Popov
729b433554 Fixed a syntax error in russian translation.
It caused an error message to be emitted when trying to view help on
grassland terrain type.
2011-09-13 10:12:57 +00:00
Simon Forsyth
a84915d712 Update Xcode project file to include new source files 2011-09-13 00:55:22 +00:00
Anonymissimus
2623d29902 fixed including a cpp instead of hpp 2011-09-12 23:37:20 +00:00
Anonymissimus
044f8ebd00 include a missing header, fixes compilation on windows 2011-09-12 23:37:01 +00:00
Thonsew
066c950174 Added todo comment to restore threading to wesnothd...
...once #bug 18654 is fixed
2011-09-12 21:30:13 +00:00
Thonsew
d02e41530c Moved WML formatting error messages from std::cerr...
...to the wesnoth console, as per discussion with Espreon.  See bug
#18627 Marked error messages as translatable.
2011-09-12 21:30:04 +00:00
Steven Panek
09b2a28e3b Have the Corrupted Elf use the elf hit sounds. 2011-09-12 20:35:04 +00:00
Steven Panek
84c52bbf03 Rewrote various things in The Final Confrontation to use [harm_unit]. 2011-09-12 20:22:48 +00:00
Thonsew
3eaca7767a Removed debugging code from config.cpp 2011-09-12 20:21:13 +00:00
Thonsew
2f0c530731 Changed the default number of wesnothd server threads to 1,
to prevent memory corruption due to the second thread.  This makes the
multiplayer game playable in spite of bug #18654.  This is not a
permanent fix.
2011-09-12 19:56:04 +00:00
Thonsew
4402e6e4f3 Changed config::hash() to an attribute order...
...independent hash to correspond with the unordered attributes as a
fix to bug #18632
2011-09-12 19:55:52 +00:00
Fabian Müller
e81b89652a UtBS::2: Reduced the effects of dehydration. 2011-09-12 19:41:24 +00:00
Fabian Müller
0c0c30ea94 UtBS: New time schedule for "After the fall". 2011-09-12 18:20:05 +00:00
Anonymissimus
b7801e1feb VC10 projectfile update 2011-09-12 16:47:37 +00:00
Anonymissimus
b3658fa70a fix an MSVC warning about one of the control paths...
...skipping a variable initialization
2011-09-12 16:47:21 +00:00
Anonymissimus
6c7ab5b6db CB projectfile update 2011-09-12 16:47:05 +00:00
Anonymissimus
22b202235a vc9 projectfile update 2011-09-12 16:46:47 +00:00
Eric S. Raymond
3ac5225f3d Fix a too-familiar name. 2011-09-12 12:30:47 +00:00
Eric S. Raymond
71c659aef0 Remove an AD reference.
In this sitiation the characters wouldn't be specifying calendar suffixes.
They haven't yet figured out they're on different calendars.  Besides, it
simplifies things.
2011-09-12 11:58:20 +00:00
Steven Panek
695269c34a Added comments to the four-difficulty macros...
...so they'll get into the macro reference page.
2011-09-12 08:44:26 +00:00
Steven Panek
4fedbcece5 Moved the four-difficulty macros to core; wrote some new ones. 2011-09-12 08:28:15 +00:00
Steven Panek
f2981582c0 Prevented the possibility of seeing two Malifors; fixes bug #17295. 2011-09-12 07:56:26 +00:00
Steven Panek
ef1470a472 Use the new replay_save= key in Liberty's epilogue...
...to prevent a useless replay save from being created; fixes bug #17222.
2011-09-12 07:08:36 +00:00