Commit Graph

47765 Commits

Author SHA1 Message Date
Steven Panek
09ab943324 Updated Karrag's unit definition...
also bound the file to wesnoth-units.
2011-11-04 16:58:48 +00:00
Ignacio R. Morelle
87e8b712f2 Remove unneeded method parameter...
...that's always the value of a field of the same class
2011-11-04 05:08:54 +00:00
Ignacio R. Morelle
6437b5e6e9 Sort-of revert 2011-08-13T14:55:04Z!thonsew@yahoo.com
The only thing this commit did was mess around with dangled pointer
access timings instead of solving the original UB that it was supposed
to fix (see bug #18495). There's no problem with accessing theme UI
buttons before they are initialized since they will be NULL and the
replay controller already made sure to not do silly crap with NULL
pointers (except for the case spotted in 2011-11-04T04:27:26Z!shadowm@wesnoth.org).
2011-11-04 05:08:40 +00:00
Ignacio R. Morelle
9d5171482e Describe the major caveat for display::find_button() in a doxygen comment 2011-11-04 04:27:51 +00:00
Ignacio R. Morelle
ce3a50fb2a Fix a yet unseen case of UB...
...caused by themes lacking a Skip Animation button
2011-11-04 04:27:26 +00:00
Ignacio R. Morelle
1cecf57cc7 Fix undefined behavior in replay controller UI (bug #18892, bug #18495)
(IRC users: please read the entire commit message instead of relyingon CIA.)

2011-02-07T21:43:12Z!b.waresiak@gmail.com introduced some code, purportedly intended to fix bug
#16237, which relied on game_display/display never destroying buttons
returned by the find_button() method. Unfortunately, many code paths
calling game_display/display::draw() cause them to be destroyed and
recreated, resulting in UB from code that still keeps the old pointers
around and doesn't refresh them before use.

This commit removes the replay_controller::replay_buttons_wrapper
class and reintegrates its code into the replay_controller class to
remove one unrequired abstraction layer, without entirely reverting
2011-02-07T21:43:12Z!b.waresiak@gmail.com. It also makes sure pointers aren't kept for longer than
necessary, disposing of them after use and calling
game_display/display::find_button() every single time a button has to
be accessed. This shouldn't result in noticeable runtime overhead
increase as the buttons are stored in a vector which is rarely very
large (I have yet to see a Wesnoth GUI theme that has more than ten
buttons).

As a side-effect of my changes, however, a glitch on the Skip
Animations checkbox background has appeared. Considering I don't touch
that button at all, it's possible there's a different cause for it
that was concealed by the replay buttons' triggered UB.

I don't think this side-effect is more important at this point than the
original bug, and I or someone else can investigate it later.

NOTE: If someone has a reasonable argument for this commit being
reverted before 1.9.10, feel free to discuss that with me.
2011-11-04 04:20:23 +00:00
Steven Panek
76af6dc206 Fixed initial textdomain binding in the Dwarvish Masked Fighter's file. 2011-11-03 22:03:46 +00:00
Steven Panek
fd0da2f5f7 Fixed typos in historical changelog notes. 2011-11-03 19:10:37 +00:00
Steven Panek
9ed4255a50 Renamed the Dwarvish Masked Guardsman's file to reflect the unit's current name. 2011-11-03 19:08:16 +00:00
Steven Panek
6c28d02523 Fixed the Dwarvish Masked Guardsman line. 2011-11-03 19:06:30 +00:00
Steven Panek
99eb522101 Fixed the Dwarvish Masked Fighter line. 2011-11-03 18:52:11 +00:00
Steven Panek
57dcdff73d 'nick' -> 'nickname'. 2011-11-03 17:24:38 +00:00
Anonymissimus
0ca6857bbf fix changelog style 2011-11-03 15:18:23 +00:00
Anonymissimus
f18302b50c changelog update 2011-11-03 15:18:08 +00:00
Anonymissimus
9f39581bb6 allow function debug.traceback in wesnoth lua
silene had agreed in making this function available. He wanted me to
add it as wesnoth.traceback though, supposedly just because it
would've been easier for me at that time.
2011-11-03 15:17:52 +00:00
Anonymissimus
9bc76592cb add a missing type in the stack dumper 2011-11-03 15:17:35 +00:00
Nils Kneuper
b41475d26a updated Indonesian translation 2011-11-03 10:30:29 +00:00
Nils Kneuper
f2780892e1 updated Slovak translation 2011-11-02 22:22:35 +00:00
Steven Panek
56be0c1ef4 Began fixing the masked dwarves, starting with the Masked Thunderer line. 2011-11-02 21:03:21 +00:00
Fabian Müller
06e9f2073c Code cleanup for 2011-11-02T17:55:15Z!fabianmueller5@gmx.de. 2011-11-02 19:24:11 +00:00
Fabian Müller
d9684de4c6 Added support for [secondary_unit] SUF in [recall] action wml. 2011-11-02 17:55:15 +00:00
Fabian Müller
eaa1f5f2fe Added a TODO reminder for me...
...to check with crab about lua ai related issues of the multileader
recall/recruit aspects.
2011-11-02 17:17:51 +00:00
Nils Kneuper
7845a1ba58 updated Galician translation 2011-11-02 09:47:55 +00:00
Ignacio R. Morelle
9f03006d61 Fallback to the End Turn action's default title...
...if there's no End Turn button in the theme GUI when displaying a context menu

a) Yes, it makes sense to not have an End Turn button.

b) No, it doesn't make sense to rely on the existence of an End Turn
button.

c) Yes, this change is completely harmless.
2011-11-02 07:13:31 +00:00
Simon Forsyth
b7ef47690b Correct high neighbour count track macros 2011-11-02 01:29:26 +00:00
Simon Forsyth
92480570ae Allow variant images for tracks 2011-11-02 01:25:22 +00:00
Simon Forsyth
35eadcbc0b Wire in rotting bridge variant 2011-11-02 00:55:42 +00:00
Mark de Wever
8dfe599e9e Add Lua support for clickable gui2 elements.
Patch #2763.
2011-11-01 21:12:12 +00:00
Steven Panek
ba4e903ea5 Converted a straight apostrophe. 2011-11-01 20:59:09 +00:00
Mark de Wever
4f04a0bb0d Fixes OOS ignore toggle in the save dialog.
Fixes bug #18330.
2011-11-01 20:12:37 +00:00
Mark de Wever
c936ad468a Removed old markup style from OOS messages.
Fixes bug #18387. Also reverts 2011-09-03T01:51:56Z!Majora700@gmail.com, which is wrong since the dialog
has pango markup disabled.
2011-11-01 19:38:02 +00:00
Ignacio R. Morelle
9bcd216280 Hotkey preferences: Make the screenshot hotkey assignment warning...
...correct again

alink pointed out that 2011-10-31T19:45:47Z!shadowm@wesnoth.org inverted the meaning of the
warning, so invert it again and "try" to explain why modifiers are
recommended.
2011-11-01 18:20:31 +00:00
Fabian Müller
f10768bf75 Implemented the $second_unit being bound to the acting leader...
...in recruit/recall events.

LUA and WML connections to the feature are still missing.
2011-11-01 16:20:13 +00:00
Derek Hoagland
a7e7a6385b Tinted the slowed snail icon to match the new slowed unit color.
The old image still exists at images/misc/snail.png
2011-11-01 15:40:57 +00:00
Derek Hoagland
7022a771a8 Slowed units are now tinted to be recognizable at a glance 2011-11-01 14:47:32 +00:00
Simon Forsyth
bdfc1307ba Reduce invasiveness of fix for bug #18701...
...(eliminates regression found by shadowmaster)
2011-10-31 22:48:58 +00:00
Steven Panek
664c1cc56e Manually fixed an msgid. 2011-10-31 21:18:16 +00:00
Steven Panek
44f500c960 Fixed capitalization in a preference string. 2011-10-31 21:15:44 +00:00
Steven Panek
6508367a02 Fixed a spelling error in DW. 2011-10-31 20:49:01 +00:00
Steven Panek
9ea0122921 Updated the British English translation. 2011-10-31 20:37:51 +00:00
Ignacio R. Morelle
19ebf117c4 Preferences: Convert dialog header from Sentence case to Title Case 2011-10-31 20:32:12 +00:00
Nils Kneuper
c0ec54bdc5 pot-update
regenerated doc files
2011-10-31 20:19:43 +00:00
Ignacio R. Morelle
4dacfbda75 Preferences, Map Generator: OK -> Close,
...since that's also used in Preferences
2011-10-31 20:16:05 +00:00
Ignacio R. Morelle
0245e78e2d Hotkey preferences: Do not capitalize "hotkey" in Sentence case labels 2011-10-31 19:48:03 +00:00
Ignacio R. Morelle
86132d84d6 Hotkey preferences: Make the modifiers-on-screenshot-hotkey...
...warning use proper English and a title
2011-10-31 19:45:47 +00:00
Ignacio R. Morelle
562aee8ca4 Update changelog 2011-10-31 19:26:20 +00:00
Ignacio R. Morelle
ad2d23f83f Hotkey Preferences: Tweaked listbox layout for consistency,
...and made the dialog fit on 800x480
2011-10-31 19:21:36 +00:00
Ignacio R. Morelle
f0e1e23443 Revert all the pofix rules related to the UI cleanup...
...since pofix doesn't know about textdomains and does partial
matching for some retarded reason

Too bad I still wasted my time doing lots of copy/paste because nobody
explained this to me.
2011-10-31 19:15:09 +00:00
Nils Kneuper
a1a49cc160 updated Finnish translation 2011-10-31 19:01:34 +00:00
Ignacio R. Morelle
948eb74c33 Preferences: Use the translated t_string values...
...to sort Advanced Preferences instead of the C values

(Pointed out by AI0867 on IRC.)
2011-10-31 16:32:06 +00:00