36569 Commits

Author SHA1 Message Date
Nils Kneuper
9ecb708046 updated German translation 2009-10-12 21:57:35 +00:00
Jörg Hinrichs
960f9554a9 Fixes replays no longer doing single side turns...
...after opening the preferences dialog.
2009-10-12 18:39:50 +00:00
Mark de Wever
455cdfe6a5 Do the event recursion prevention properly.
Found out I forgot to rewrite the code not to use static variables but
members. Added todo's for two events where I'm not sure whether I need
recursion prevention.
2009-10-12 18:13:09 +00:00
Nils Kneuper
f18e698a5e updated Finnish translation
reformat changelog entries to only have 80 chars per line
2009-10-12 16:44:09 +00:00
Eugen Jiresch
816b0fd75f when loading a game, the gamestate is now erased...
...when the load_game_exception is caught, as opposed to before it is
thrown. fixes bug #14460
2009-10-12 16:27:56 +00:00
Nils Kneuper
a6af80df1c updated Hungarian translation 2009-10-12 00:34:19 +00:00
Chusslove Illich
72c27c7565 Updated source localized images for German. 2009-10-11 18:18:49 +00:00
Chusslove Illich
c20e632813 Updated localized images for German. 2009-10-11 18:17:34 +00:00
Guillaume Melquiond
e17dfbd035 Removed duplication of attack code. Ensured that battle contexts...
...are always refreshed after WML events.
2009-10-11 17:50:33 +00:00
Nils Kneuper
2c1b2816bd updated German translation 2009-10-11 15:13:54 +00:00
Mark de Wever
6e697cf6ed Force a redraw.
Just like the last commit it looks like it's hiding another bug.
2009-10-11 15:08:49 +00:00
Mark de Wever
d8fd44ce8d Disable the recursion locker.
This locker isn't needed for a top level dispatcher and it seems to
break (at least in this case). I however assume this commit fixes a
symptom not a cause...
2009-10-11 15:08:46 +00:00
Mark de Wever
6fc3fe8553 Set the window type as id.
This helps debugging since the id is printed in the event debug
messages.
2009-10-11 15:08:42 +00:00
Mark de Wever
e8649fa9d4 Convert a button callback to a signal handler.
Just a proof of concept change, the rest of the callbacks will be
changed post 1.8.
2009-10-11 15:08:39 +00:00
Mark de Wever
cf70494c46 Wire in the first public widget signal handler.
These signals should replace the callbacks, but this project will be
done post 1.8. But it shows the design idea.
2009-10-11 15:08:35 +00:00
Mark de Wever
99bd003b89 Let the new dispatcher do the event handling.
The old code remains but ifdef'ed out so can be restored if needed.
2009-10-11 13:36:37 +00:00
Mark de Wever
ac4fad5a53 Add a new event distributor class.
This class is meant to replace the current event handler class. The
replacement will be done in a later commit.
2009-10-11 13:05:30 +00:00
Mark de Wever
b1d131ff9f Remove assert so the compiler can properly warn. 2009-10-11 10:39:20 +00:00
Mark de Wever
0a981495ac Allow to disconnect signals. 2009-10-11 10:39:15 +00:00
Nils Kneuper
2886907c0c updated Shavian translation 2009-10-11 09:36:50 +00:00
Chusslove Illich
b2ac4cc5a7 Images used in the tutorial on image localization. 2009-10-11 09:11:53 +00:00
Mark de Wever
9359184556 Improve po-update to avoid nop updates.
The last change caused a lot of files be updated with the only change
the pot-update header. In the Wesnoth wiki there was a hint to use
msgattrib to cleanup the changes poedit makes. Using this on the file
seems to give the wanted output, proper files and no "dummy" updates.

Ivanovic please test this change.
2009-10-11 07:08:49 +00:00
Richard Kettering
b1a94d4a76 Added new hammer frames for the dwarvish lord and steelclad. 2009-10-11 07:08:38 +00:00
Richard Kettering
6ac51ac467 Added a new, complete goblin variant of the walking corpse and soulless. 2009-10-11 06:33:01 +00:00
Ali El Gariani
a536b3fac3 Commit experimental bugfix for default AI in RCA AI (exerimental targeting)
Fix a very old bug making the AI rates targets as if they were all
reachable in 1 turn. AI should now prefer targets reachable in 2 turns
against one needing 3 (if same value).

Note that it only affects targets needing more than 1 turn to reach.

This also make "complex targetting" works and should make the AI pick
the best unit to reach the best target (probably begin by sending
scouts grab undefended villages)
2009-10-10 22:46:12 +00:00
Iurii Chernyi
3de0a8247f players_changelog entry for above commit 2009-10-10 21:49:03 +00:00
Iurii Chernyi
a264913088 fix a serious enough bug in default ai targeting,
...uncovered with the help of Aethaeryn, who provided a test case. The
bug caused the AI, in certain situations, to make weird
shuffle-doing-nothing moves and not seek enemies or their villages
2009-10-10 21:35:16 +00:00
Guillaume Melquiond
382c94e8b6 Removed unused fields ntime::source::time_ and index_. 2009-10-10 20:15:26 +00:00
Guillaume Melquiond
e390a7441f Removed unused enumeration ntime::source::time_mode. 2009-10-10 20:15:02 +00:00
Guillaume Melquiond
f90b78de62 Removed unused class unit_map::xy_accessor_base. 2009-10-10 19:05:46 +00:00
Guillaume Melquiond
38f1a101f3 Fixed dangling pointer when the current weapon...
...subreptitiously disappears from the unit, while the other unit was removed.
2009-10-10 19:05:41 +00:00
Guillaume Melquiond
f132d4ee13 Directly checked unit validity instead of relying on xy_accessor.
Indeed, if another unit takes the place of the attacker or the
defender (e.g. Trinity scenario K02), the change would go undetected,
hence causing a segfault at attack end.
2009-10-10 19:05:36 +00:00
Guillaume Melquiond
14032eaa0d Reduced dependency on unit_map iterators. 2009-10-10 19:05:31 +00:00
Guillaume Melquiond
a257e408cd Removed battle execution from constructor,
...so that thrown exceptions are less harmful.
2009-10-10 19:05:26 +00:00
Guillaume Melquiond
584ef33493 Moved the attack class out of the way, as it was completely private anyway. 2009-10-10 19:05:19 +00:00
Guillaume Melquiond
d93ecac3ad Reverted commit 2009-10-09T20:42:56Z!haskjold@pvv.org so that WML [message] buttons show...
...light text on dark background.

The current situation (light text on light background) makes it
impossible for people with low contrast sensibility to read the text
of the buttons.

(I suppose the current situation also affects people using poor LCD
displays, since the buttons are usually displayed at the bottom of the
screen, where the contrast for light colors is the worst.)
2009-10-10 16:19:56 +00:00
Guillaume Melquiond
c5d5b1efd4 Removed unused members of class CKey. 2009-10-10 16:19:51 +00:00
Guillaume Melquiond
be32933321 Removed unused members sound_source::*::add_location. 2009-10-10 16:19:45 +00:00
Mark de Wever
0788c3d81e Create new events for getting and losing focus.
Uses the new notifications to send the events, this means only the
widget getting or losing the focus gets the event not it's parents.

Also comment out the old code to handle mouse focus.
2009-10-10 15:36:37 +00:00
Mark de Wever
7a1962c00a Add a signal handler fired upon destruction.
This way a widget notifies all it's parents of it's departure.
In order to allow this event a new signal type is used.
2009-10-10 15:36:25 +00:00
Nils Kneuper
a459614b70 updated Shavian translation 2009-10-10 14:40:28 +00:00
Mark de Wever
921cc5d04a Changelog and release notes update. 2009-10-10 11:14:05 +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
Mark de Wever
f961dd6bbc Make showing a dialog exception safe. 2009-10-10 11:11:57 +00:00
Sergey Popov
068103c765 Added 'lockfile' option to scons
It uses a lockfile to prevent multiple instances of scons from being run
in the same working copy at the same time.
2009-10-10 11:00:12 +00:00
Guillaume Melquiond
15cc0203d0 Removed unused constructor sound::music_track. 2009-10-10 10:45:42 +00:00
Elias Pschernig
9607325744 [wesnoth_addon_manager] try to connect only once...
...to the server when --html is used in parallel to
--download/--list/--update
2009-10-10 10:12:54 +00:00
Guillaume Melquiond
1739459cd8 Switched labels and tooltips from SDL to Pango. 2009-10-10 09:36:43 +00:00
Guillaume Melquiond
c56050dda1 Sped up conversion from Pango surface to SDL surface.
(Reference compiler: gcc 4.3 on amd64.)
2009-10-10 09:36:39 +00:00
Mark de Wever
56fda937be Remove unused constructors. 2009-10-10 09:16:27 +00:00