19385 Commits

Author SHA1 Message Date
Anonymissimus
41796894d9 fix [effect][filter] not working correctly regarding locations 2011-11-09 23:55:35 +00:00
Anonymissimus
1f539b39c8 delay/add variable substitution in unit::add_modification (fix for bug #18893) 2011-11-09 00:22:25 +00:00
Steven Panek
d1dc52f71f Converted remaining hyphen-minuses in the gold report dialog. 2011-11-08 02:57:22 +00:00
Fabian Müller
312d1116c0 Fix the second_unit support of recall actions during a replay. 2011-11-07 23:28:35 +00:00
Iurii Chernyi
bd1bc355e1 Fixed Bug #18918: the create unit dialog...
...was sometimes capturing village incorrectly
2011-11-07 20:03:55 +00:00
Anonymissimus
d889982437 paper over bug #18883 2011-11-07 18:35:57 +00:00
Fabian Müller
c33446f715 fix bug #18931 and bug #18929
Makes the replay engine aware of the multiple leader recall/recruit stuff.
2011-11-07 18:23:48 +00:00
Nils Kneuper
5ec3296403 post-release version bump to 1.9.10+svn 2011-11-07 16:57:18 +00:00
Nils Kneuper
39e1aee7bc bump version to 1.9.10 2011-11-07 16:28:16 +00:00
Alexander van Gessel
c3628a1537 Convert gold report to use half_signed_value 2011-11-07 00:18:29 +01:00
Alexander van Gessel
671bfedf1c Make status report and tool bar use (half)_signed_value 2011-11-07 00:18:26 +01:00
Alexander van Gessel
c9153c3cdd Add utils::half_signed_value() to only sign negative numbers 2011-11-07 00:18:22 +01:00
Anonymissimus
3073753bf5 add getter for [race]undead_variation 2011-11-06 21:34:12 +00:00
Steven Panek
028985856e Replaced some hyphen-minuses with em dashes. 2011-11-06 20:21:34 +00:00
Alexander van Gessel
210fa9f5d2 Add [unit_type]image_icon key (FR bug #15466) 2011-11-06 21:18:50 +01:00
Anonymissimus
bb32598bae return by const ref 2011-11-06 16:32:33 +00:00
Anonymissimus
4dc94edbd0 replace wesnoth.unit_image_mods with a proxy field 2011-11-06 15:52:52 +00:00
Ignacio R. Morelle
686bf9f563 Add wesnoth.unit_image_mods() function...
...and make [move_unit] use it to respect mods applied via EffectWML
2011-11-06 05:39:28 +00:00
Anonymissimus
7bde1fc003 Revert 2011-11-06T02:00:06Z!anonymissimus@arcor.de and 2011-11-06T02:00:24Z!anonymissimus@arcor.de.
I didn't consider the mp aspect of this.
2011-11-06 02:34:41 +00:00
Anonymissimus
645b847525 deprecated ancient [scenario]objectives= attribute 2011-11-06 02:00:24 +00:00
Anonymissimus
035d80b772 set objectives_changed to true only if...
...[scenario]objectives= not blank (fix for bug #18927)
2011-11-06 02:00:06 +00:00
Anonymissimus
3aaeb0df3e add a warning message to [colour_adjust] 2011-11-06 00:20:46 +00:00
Anonymissimus
0a519cfebd remove some ocurrances of "colour" being written into configs
I leave out places with which I don't feel familiar enough. Removes
"colour" from gamestate inspector.
2011-11-06 00:20:28 +00:00
Ignacio R. Morelle
019947332c Remove an unneded call to redraw the whole display...
...after showing the Preferences dialog in-game
2011-11-05 22:09:19 +00:00
Alexander van Gessel
b080750e49 Add a translatable message for the new error code 2011-11-05 22:16:38 +01:00
Alexander van Gessel
121b2d373f Make the failed login banner configurable 2011-11-05 22:16:34 +01:00
Alexander van Gessel
07db2f05e1 Ban IPs that cause too many failed login attempts. Fixes bug #17535 2011-11-05 22:16:19 +01:00
Anonymissimus
c277c69d72 fix variable owner_side not cleared if it didn't exist 2011-11-05 18:27:37 +00:00
Anonymissimus
95b0522d61 introduce support to wesnoth.set_village_owner for not firing capture event 2011-11-05 18:27:05 +00:00
Anonymissimus
e9b3d27d88 let capture events store previous owner in variable owner_side (FR bug #13567) 2011-11-05 18:26:47 +00:00
Alexander van Gessel
31d833bb4c Fix some indentation in race.hpp as it has been changed anyway 2011-11-05 17:16:29 +01:00
Alexander van Gessel
3867b5292c Introduce [race]undead_variation as a default for the race's [unit_type]s 2011-11-05 17:16:24 +01:00
Alexander van Gessel
8c09e8b11f Prevent a bug if [recall] is used on a valid, but unusable location...
...and no usable location can be found.
2011-11-05 01:32:54 +01:00
Alexander van Gessel
d0e16cd4c4 Restore old [recall] behavior:
If you can't recall near a leader, and a map location is given, recall
there instead.

Fixes bug #18913
2011-11-05 01:08:50 +01:00
Anonymissimus
96c1152c23 introduce [redraw]clear_shroud=(def no), [redraw]<SSF>
(fix for bug #18879)

There was an implicit conversion config::attribute_value to int with
default 0. Strangely, this sometimes went well with my MinGw built and
also does for some time in Espreon's backtrace, but MSVC crashes early
where the resulting out-of-bounds problem occurs (actions.cpp:2366)
2011-11-04 21:13:55 +00:00
Ignacio R. Morelle
c9dfc4fe08 Another minor English fix 2011-11-04 20:50:21 +00:00
Ignacio R. Morelle
7c3a7911b4 Minor English fix 2011-11-04 20:48:22 +00:00
Ignacio R. Morelle
68cf606343 Return to the add-ons list after uploading or deleting 2011-11-04 20:15:17 +00:00
Mark de Wever
adc3b5f364 Fixes compilation with libpng-1.5.5.
Fixes bug #18882.
2011-11-04 20:13:53 +00:00
Alexander van Gessel
f1d2fc9f1e Only add 'i' infix if there's a prefix. 2011-11-04 21:09:15 +01:00
Ignacio R. Morelle
2244ac62c6 Revert "Straight quotes -> curly quotes"
This reverts commit 2011-11-04T20:08:05Z!shadowm@wesnoth.org,
2011-11-04 20:09:14 +00:00
Ignacio R. Morelle
f89fca5a70 Curly quotes -> straight quotes 2011-11-04 20:08:24 +00:00
Ignacio R. Morelle
9116f44a85 Straight quotes -> curly quotes 2011-11-04 20:08:05 +00:00
Ignacio R. Morelle
6424c33b0c Made the Delete Add-on (in the server)...
...option request confirmation from the user before proceeding
2011-11-04 20:05:02 +00:00
Ignacio R. Morelle
018a75b956 Make Publish/Delete add-on options use the add-on name without underscores 2011-11-04 19:44:37 +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