Commit Graph

47432 Commits

Author SHA1 Message Date
Thonsew
befbcc93a7 Fix for bug #18745:
(It is now impossible to jump to ability topics from the sidebar in
most translations)

Changed all vectors of ability_tooltip objects to be vectors of
t_strings.  Previously, sometimes they passed std:string and sometimes
t_strings. This meant that the help index was a t_string->translated
string ->t_string ->base_str(), where the base string was actually a
translated string.  The tooltip was passing
t_string->translated_string as index which, although inconsitent
worked.

Now when the tooltip is created it uses the translated string as the
visible string and the base_str() as the index into the help, as
intended but not done in the original code.
2011-09-29 15:55:30 +00:00
Thonsew
07da4b4eaf Fix for bug #18639: Race names are not translated in the sidebar
The descriptions in window_builder and gui/widgets/settings.cpp were
being passed as strings and not t_strings.  They are now passed as
t_strings.
2011-09-29 15:55:24 +00:00
Thonsew
288f446fef Changed wesnoth_gdb pretty printers...
...to correctly print the prefix and untranslated string for
t_strings.  Previously it was only printing the prefix as the prefix
ends is zero terminated before the following untranslated string.
2011-09-29 15:55:17 +00:00
Simon Forsyth
0079f70d6f Overdue changelog updates 2011-09-29 02:23:24 +00:00
Simon Forsyth
64c9b9563d Make all stones w/ sand drift images equally likely...
...removes small chance that no image will be displayed
2011-09-29 01:54:04 +00:00
Simon Forsyth
75913e9c16 Further increase in large swamp presence around castles 2011-09-28 22:27:59 +00:00
Elvish_Hunter
6300b1b3bf Added [find_path] 2011-09-28 19:24:55 +00:00
Mark de Wever
8ef22b2269 Let operator++() return a reference. 2011-09-28 19:21:16 +00:00
Mark de Wever
b99c907f5c Let operator++() return a reference. 2011-09-28 19:21:12 +00:00
Mark de Wever
38243fa4bf Fix some pedantic warnings. 2011-09-28 19:21:06 +00:00
Alexander van Gessel
62b0f4c120 Remove all non-double versions of si_string().
This fixes lack-of-significant-digits problems.  Remove default
arguments to si_string() to encourage people to use translatable
strings.
2011-09-28 18:49:00 +01:00
Nils Kneuper
c932e8dd88 updated Korean translation 2011-09-28 09:29:34 +00:00
Nils Kneuper
0b7b0803bd updated Galician translation 2011-09-28 07:42:18 +00:00
Simon Forsyth
a8201a5dea Added missing button image 2011-09-28 01:15:54 +00:00
Steven Panek
e49bd8964a Fixed an issue reported in the fora:
http://forums.wesnoth.org/viewtopic.php?p=507912&sid=dc02ff3010a9523f06f76ce6a11ce4eb#p507912
2011-09-28 01:12:00 +00:00
Simon Forsyth
12826c1d14 Remove unused wall images (copies of wall-rough-*) 2011-09-28 01:02:23 +00:00
Simon Forsyth
8355eb92bc New WALL_ADJACENT_TRANSITION macro
like WALL_ADJACENT but avoids declaring base terrain inside it
this matches the other wall macros (e.g. NEW:WALL)
the two instances of this in terrain-graphics are switched to the new macro
incidentally reduces number of terrain_graphics rules by 1
2011-09-28 00:43:36 +00:00
Steven Panek
eefe60f948 Added FACING, which is meant to be used with unit-generating macros. 2011-09-27 23:10:46 +00:00
Simon Forsyth
df05dd0302 Erase pointy bits of cave chasm wall; fixes bug 18722 2011-09-27 23:10:17 +00:00
Anonymissimus
8cc18af32a add a comment describing the .colour warning from [store_side]... 2011-09-27 23:02:30 +00:00
Anonymissimus
26eee3b6ba remove confusing usage of a typedef 2011-09-27 23:02:14 +00:00
Anonymissimus
4762c1f8fc remove an uncalled duplicate operator from struct luaW_pushscalar_visitor
(uncalled due to the MSVC debugger at least)
2011-09-27 23:01:58 +00:00
Anonymissimus
c90a18c3fa remove unused token z_this_unit 2011-09-27 23:01:43 +00:00
Anonymissimus
d3d0400ed0 revert part of 2011-09-08T19:16:01Z!thonsew@yahoo.com (resonless change to [item] behavior) 2011-09-27 23:01:26 +00:00
Anonymissimus
6e750eefb6 change a macro from a recent revision of mine to a function 2011-09-27 22:51:13 +00:00
Simon Forsyth
7ab65825bc Use large swamp image around swamp castle/keeps 2011-09-27 22:38:56 +00:00
Simon Forsyth
ff70dc022b Fix cannot find terrain/.png error when placing hidden forest/hill terrains 2011-09-27 22:16:37 +00:00
Simon Forsyth
1ee5f7f2a4 Do not draw encampment keep around dwarf keep 2011-09-27 21:40:13 +00:00
Ignacio R. Morelle
3c063befb5 Move the "could not initialize joystick" message to the correct stream 2011-09-27 02:28:54 +00:00
Simon Forsyth
f58e557220 Merge some flag-setting rules for terain transitions 2011-09-27 01:28:18 +00:00
Mark de Wever
b4d927e967 Strip trailing whitespace. 2011-09-26 20:27:15 +00:00
Mark de Wever
ffe42f4ca1 Fix a compilation issue in c++0x mode.
Adds extra constructors to the coordinate class to avoid narrowing
conversions, which are no longer allowed in c++0x.
2011-09-26 20:27:09 +00:00
Mark de Wever
c26c07b18c Fix a compilation issue in c++0x mode. 2011-09-26 20:27:05 +00:00
Mark de Wever
789bc09769 Fix a compilation issue in c++0x mode. 2011-09-26 20:27:02 +00:00
Mark de Wever
eba8f75669 Fix a compilation issue in c++0x mode. 2011-09-26 20:26:58 +00:00
Thonsew
f1ab44d74b Changed. In the wesnoth pretty printers I changed...
...the default number of levels of recursion when printing configs to
2.  I also fixed printing of pointers to attribute_values.
2011-09-26 19:58:08 +00:00
Thonsew
1432676b55 Fixed In UtBS::2 a 1 based random array index was being created.
I changed it to a 0 based random index.
2011-09-26 19:58:02 +00:00
Thonsew
e39c4700ec Fixes variable indices should default to [0] if absent or unitinialized.
If the variable index is absent it now defaults to 0.

This fixes bug #18728.  It might also fix all FOREACH and lua while
loops as Gambit described but I need to double check.
2011-09-26 19:57:56 +00:00
Thonsew
6800b6633c Fix bug #18703:
(if race uses name instead of male_name its name doesn't show up.)

I corrected the use of z_name as a default when neither z_male_name
nor z_female_name are presented.  We now have race names below unit
names in the side_bar for non-gendered units like Wose and ships.
Perhaps the problem only occured for wooden units?
2011-09-26 19:57:50 +00:00
Thonsew
f8d09dfc1a Fixes #bug 18715
(Game hangs at loading screen after flushing caches and save index and
pressing F5)

Previously, when the .cache/wesnoth directory was deleted, while
wesnoth was running and then the cache was refreshed with F5 from the
startup screen, wesnoth hung.  The crash occured because wesnoth
didn't recreate the cache directory after startup, when it is
recovering from the cache not existing.  Now it makes a new cache
directory as needed.
2011-09-26 19:57:44 +00:00
Thonsew
4032239276 Changed/restored behavior of config::attribute_value...
...when assigned "" an empty string.

Previously the attribute became EMPTY which caused problems in lua
which always expects a string in gmatch.  It still reports an
attribute equal to "" as empty, but its type has been changed to TOKEN
so that is returns the string "" to lua.  This fixes bug #18727 (in
part), bug #18667.
2011-09-26 19:57:38 +00:00
Fabian Müller
044afdea7b Hack to make eclipse-cdt parse the boost foreach construct...
...like the C++0x / C++11 for loop.
2011-09-26 16:50:56 +00:00
Anonymissimus
94a5382f38 fixes changelog entry for [event]remove=yes|no feature
(which was the reason for the previous bug (fix))
2011-09-26 13:18:03 +00:00
Anonymissimus
105e40b6df set buffering to false upon clearing event handlers...
...when the event manager is destroyed

(for the first scenario it's initialized to false too)
2011-09-26 13:17:47 +00:00
Anonymissimus
6a736a68c2 killed a now useless intermediate function 2011-09-26 13:17:32 +00:00
Anonymissimus
e5289c9d32 refactored when (and when not) buffering of added events is done
(fix for bug #18695 and bug #18737)

The reason for the bug was that buffering was activated and deacticated
at wrong times.

Events added (or removed) during the current event call stack do not
have effect until the base event has run out. The code previously to
adding the [event]id= feature behaved this way and it is now (again)
this way. Although it's still not exactly clear to me *why* this
buffering is done, adding event handlers which were just added during
the current call stack already to the active ones (FR bug #18713)
would require modifying the array of active handlers withint the same
loop where we are iterating over it, which is always a problematic
thing, and this in an area where every mistake quickly results in
fatal WML engine bugs...

This should be subject to further testing with scenarios featuring
complicated event structure envolving custom events, [fire_event]s,
event ids and removing of events.

The reason for me not being able to reproduce with my testcase was
that I didn't have shroud enabled. ;)

The reason for me being able to reproduce only sometimes was (I think) that
originally, buffering was initialized with random data so it sometimes
delayed the preload event and sometimes it worked correctly.
2011-09-26 13:17:16 +00:00
Anonymissimus
0324a88d09 add an event handler log domain and lots of related debug messages 2011-09-26 13:17:01 +00:00
Anonymissimus
acf7ec421e debugger-friendly formatting of class t_event_handlers 2011-09-26 13:16:44 +00:00
Simon Forsyth
fda28f8864 Revert 2010-07-31T15:18:13Z!me@jwbjerk.com
The pillars need to cover the spaces between the hexes

This is easier than moving all pillars manually

Also, the shift up didn't seem to improve the appearance of any
particular terrain combination
2011-09-25 17:35:37 +00:00
Ignacio R. Morelle
779c00052b Line-wrap author names in the add-on description dialog (bug #18691) 2011-09-25 16:31:44 +00:00