Ignacio R. Morelle
7ae4308f2d
DM 1: set the living props' facing when they are spawned, instead of
...
setting them on the start event with MODIFY_UNIT, which produced an
awkward visual effect (tsk). This also eliminates unnecessary
store_unit/unstore_unit cycles.
2009-09-22 21:19:11 +00:00
Mark de Wever
79024b9ea4
Add a compiler switch for the new event handling.
...
The new event handling is enabled when GUI2_NEW_EVENT_HANDLING is set.
It's not advised to do so since the code doesn't work properly yet.
2009-09-22 20:37:28 +00:00
Mark de Wever
12de275d92
Add some handlers for the new event handling.
...
The handlers aren't connected yet, just a sample how they should look.
2009-09-22 20:08:15 +00:00
Mark de Wever
b2e7cfc2ec
Remove MSVC comment of last commit.
...
Gcc was to blame for accepting the code.
2009-09-22 19:20:26 +00:00
Jörg Hinrichs
6c704bad85
Fixes compiler errors for MS VC++
2009-09-22 17:59:22 +00:00
Jörg Hinrichs
b3b0b24cae
Fixes a bug of not returning to the title screen...
...
...when watching a replay and cancelling the load-game dialog.
2009-09-22 17:55:28 +00:00
Jörg Hinrichs
c04b40db46
Fixes bug #14241...
...
...(mp campaigns: timer settings do not carry over to next
scenario). This (again) breaks mp savegame compatibility with all
previous releases. Campaigns shouldn't be affected.
2009-09-22 17:52:33 +00:00
Nils Kneuper
9fcee43057
updated Lithuanian translation
2009-09-22 11:02:51 +00:00
Fabian Müller
e0e752ce5b
LoW::21: Code cleanups. New starting positions.
2009-09-22 09:05:57 +00:00
Gunter Labes
5ff5a4aa5d
typo fix
2009-09-22 04:00:29 +00:00
Mark de Wever
1e85384600
Set the handler to NULL after deleting it.
...
Some test code accessed the deleted pointer and since it contained an
address the assert wasn't triggered.
2009-09-21 20:39:13 +00:00
Ignacio R. Morelle
3f6f4d9ddd
Renamed some enum types and members for generalization.
2009-09-21 19:59:01 +00:00
Mark de Wever
fe197f92c0
Documentation for the new event handling.
...
The documentation contains some ideas, not all is cast in stone yet. And
the code supporting the ideas hasn't been born yet.
2009-09-21 19:24:39 +00:00
Nils Kneuper
18d02d99d1
add the typo fixed in 2009-09-21T17:53:34Z!esr@thyrsus.com to pofix and run it on the relevant files
2009-09-21 18:50:23 +00:00
Mark de Wever
36822e6045
Change doxygen to glob src recursively.
...
This avoids adding every subdirectory to src manually.
2009-09-21 18:15:59 +00:00
Eric S. Raymond
0333880c09
Comment fix.
2009-09-21 17:54:45 +00:00
Eric S. Raymond
57218d2b51
Typo fix.
2009-09-21 17:53:34 +00:00
Eugen Jiresch
46faf6d29a
fixed WML variable population when loading midgame saves with 'show replay'
2009-09-21 15:04:40 +00:00
Eugen Jiresch
4943990cca
WML variables are no longer stored at the savefile root
2009-09-21 14:21:19 +00:00
Eugen Jiresch
ab13cb19e6
when populating game_state.variables_,
...
...snapshot/replay_start is now prioritized over savefile root
2009-09-21 13:56:35 +00:00
Eugen Jiresch
ad296d85e7
WML variables are now added to game_state.starting_pos...
...
...to preserve their state at scenario start
2009-09-21 13:28:28 +00:00
Nils Kneuper
5cab289f89
add some comments that trigger a bug in the (perl) wmlxgettext...
...
...which pleases it regarding the unbalanced items...
2009-09-21 11:22:47 +00:00
Lari Nieminen
0d05ba1e8c
Fixes a problem with the menus listing sides.
2009-09-21 10:42:21 +00:00
Iurii Chernyi
794f3259d6
workaround for an error in perl-based wmlxgettext...
...
...it thinks that 'non-comment #comment about [tag]' string contains a
tag start
2009-09-21 10:02:51 +00:00
Gunter Labes
0f03c1f8dc
Made units with the 'healthy' trait always rest heal...
...
...but take normal damage from poison.
2009-09-21 00:26:04 +00:00
Gunter Labes
5e3fe2fd5c
give a specific error message when no password is set
2009-09-21 00:25:53 +00:00
Guillaume Melquiond
dbd845c5e6
Forced cost function to return a value >= 1.
2009-09-20 19:12:59 +00:00
Guillaume Melquiond
fd19056bb5
Added a test for standard unit filters written in Lua. Updated changelog.
2009-09-20 18:10:28 +00:00
Guillaume Melquiond
e18641718b
Added a way to invoke Lua functions from standard unit filters.
2009-09-20 18:10:19 +00:00
Mark de Wever
ec09452524
Fix a typo which called the wrong function.
2009-09-20 18:07:53 +00:00
Mark de Wever
58f7b7db78
Update changelog.
2009-09-20 18:07:48 +00:00
Mark de Wever
28313b48e2
Initialize all members.
2009-09-20 18:07:32 +00:00
Guillaume Melquiond
ea755029e6
Added test for pathfinder.
2009-09-20 16:36:18 +00:00
Guillaume Melquiond
ebda62b6d5
Fixed off-by-one locations.
2009-09-20 16:36:15 +00:00
Guillaume Melquiond
ffa00a21c9
Taught Lua pathfinder about teleporting units.
2009-09-20 16:36:12 +00:00
Guillaume Melquiond
9b31bac213
Optimized a bit non-teleporting units.
2009-09-20 16:36:09 +00:00
Guillaume Melquiond
269257b45b
Factored teleport code for pathfinder.
2009-09-20 16:36:05 +00:00
Guillaume Melquiond
89c68c9e22
Removed annoying parameters.
2009-09-20 16:36:01 +00:00
Eric S. Raymond
6a60c523a3
Cope better with attributes at toplevel.
2009-09-20 16:22:18 +00:00
Eric S. Raymond
ae20489ec0
Croak more gracefully on a file with no element structure.
2009-09-20 15:40:28 +00:00
Mark de Wever
e7ed48bff1
Strip trailing whitespace.
2009-09-20 15:36:32 +00:00
Mark de Wever
e9334cb661
Initialize the new event handler.
...
Since the handler doesn't do much yet the change should not change any
behaviour.
2009-09-20 15:23:43 +00:00
Mark de Wever
445a3ef7cd
Add the tdispatcher as a base class for a widget.
...
This doesn't break anything since the class doesn't do a thing yet.
Still not entirely sure whether the widget or the control should be the
base class, but let it be the widget for now.
2009-09-20 15:23:40 +00:00
Mark de Wever
53ef7b2033
Add initial code for the new event handling.
...
The code is still proof-of-concept and hasn't been wired in anywhere, but its
base structure is ready.
2009-09-20 14:42:40 +00:00
Mark de Wever
be51c842f5
Add a new helper for find_widget.
...
The minor advantage is avoiding some code duplication, but the larger
goal is to prepare for the new event handling code.
2009-09-20 14:34:25 +00:00
Guillaume Melquiond
bf3b79e245
Fixed incorrect setting.
2009-09-20 14:19:58 +00:00
Guillaume Melquiond
fd3c52c3a0
Avoid overriding user flags.
2009-09-20 14:19:06 +00:00
Nils Kneuper
3234dac11e
pot-update...
...
(all textdomains beside wesnoth-units *should* be ready for translations)
regenerated doc files (no changes here...)
2009-09-20 14:03:04 +00:00
Nils Kneuper
64abf3e200
add a default textdomain declaration...
...
...(using "./utils/change-textdomain -t data/")
2009-09-20 13:53:46 +00:00
Eric S. Raymond
54f53b9710
Final LoW prose polishing.
2009-09-20 13:18:50 +00:00