Guillaume Melquiond
73b18ee114
Fixed minimap not being update when modifying shroud.
...
Removed meaningless message.
2009-10-17 17:14:09 +00:00
Guillaume Melquiond
5570681bdf
Restricted location ranges to map tiles. (Fix for bug #14538.)
2009-10-17 17:07:17 +00:00
Guillaume Melquiond
f9f6a7e62e
Fixed garbled chat messages.
2009-10-17 16:36:46 +00:00
Guillaume Melquiond
059ee3b1ec
Forgot an occurrence of lua_getfield.
2009-10-17 16:36:42 +00:00
Guillaume Melquiond
143241c4b8
Added upper bound on cost for pathfinder.
2009-10-17 16:36:39 +00:00
Guillaume Melquiond
3281feee81
Avoided small potential leaks by forbidding metatable-redirections...
...
...in engine arguments. Hopefully it won't cripple things too much
while making the scripting engine a bit more robust.
2009-10-17 16:36:35 +00:00
Mark de Wever
72cf13ed3c
Added a minimal implementation for the tooltips.
...
Since the tooltips are currently only used for the multiplayer menu the
have been impemented so they work there.
Post 1.8 it will be implemented better but it might be that the tooltips
then become separate floating windows. Since that's not sure added the
minimal version for 1.8 and look further after that version has been
shipped.
2009-10-17 15:06:39 +00:00
Nils Kneuper
6fb52460ec
reapply the fix from 2009-10-15T19:37:16Z!koraq@xs4all.nl by mordante
2009-10-17 11:17:34 +00:00
Nils Kneuper
eb04d7280a
updated Italian translation
2009-10-17 11:15:40 +00:00
Alexander van Gessel
c084802ca2
Fix a typo, enter it into pofix and run it on the po files
2009-10-17 11:54:01 +01:00
Mark de Wever
b1c1e81d03
Fix copy paste error.
2009-10-17 09:56:19 +00:00
Mark de Wever
bc7e6e2a34
Doxygen documentation update.
2009-10-17 09:55:21 +00:00
Mark de Wever
e87abf9202
Silently ignore the key up event.
...
The event is not useful since everything can be done with the down
event. Also a minor indention fix.
2009-10-17 09:55:17 +00:00
Mark de Wever
d077942d6c
Polish the doxygen comment.
2009-10-17 09:55:13 +00:00
Steven Panek
9fd91e5b52
Made the village-burning event use torch.ogg instead of fire.wav.
2009-10-17 06:51:48 +00:00
Mark de Wever
b73d1ac9b8
Pass parameter by const ref instead of const value.
...
Issue found by cppcheck.
2009-10-17 05:37:53 +00:00
Mark de Wever
ff27cb8f63
Update the mouse position after closing a dialog.
...
This makes sure the dialog below knows the proper location. It fixes the
following issue:
- multiplayer
- connect to server
- show list
- move mouse out of dialog
- press escape
Before this commit the show list button would still be highlighted as if
the mouse was still above it.
2009-10-16 19:42:56 +00:00
Mark de Wever
ee61765f0f
Make init_mouse_location() a free function.
...
No need to keep it as member since it uses nothing of the class. Moved
it to the handler file since I'll need it there as well.
2009-10-16 19:42:49 +00:00
Mark de Wever
a6430e08f6
Fix the not properly drawing glitch.
...
When a window is closed the other dispatchers need to be set dirty so
they really redraw themselves the next drawing cycle.
2009-10-16 19:42:45 +00:00
Mark de Wever
c1634e23d4
Pre instead of post increment a variable.
...
Issue found by cppcheck.
2009-10-16 17:56:58 +00:00
Mark de Wever
ef02c3e269
Pass parameter by const ref instead of const value.
...
Issue found by cppcheck.
2009-10-16 17:55:49 +00:00
Mark de Wever
93730b6c88
Strip trailing whitespace.
2009-10-16 17:55:44 +00:00
Sergey Popov
95d98488d0
Fixed compile warnings.
2009-10-16 14:17:31 +00:00
Jörg Hinrichs
5b21114d6d
Removes num_turns from mp_game_settings,
...
...as that information is not unique to multiplayer. Also fixes
num_turns not being displayed for replays.
2009-10-15 21:59:43 +00:00
Nils Kneuper
928d985748
updated German translation
2009-10-15 21:02:06 +00:00
Ali El Gariani
7efe4ce50d
Activate new level sorting when opening recall dialog.
...
This actually only show the little arrow (which now indicates how it
is sorted) because there is old ugly code already directly sorting the
recall list itself, (but only when opening the dialog, which is
probably bad for MP/OoS)
2009-10-15 19:53:51 +00:00
Mark de Wever
6f84e7a8bc
Fix a broken markup in the Italian translation.
...
Fixes bug #14506 .
2009-10-15 19:37:16 +00:00
Ali El Gariani
f4a077e252
Add column sorting for level breaking tie using XP
...
only used in unit list for the moment
2009-10-15 19:04:12 +00:00
Gunter Labes
5b80e34dd9
made [clear/place_shroud] include the border by default (no x,y given)
...
fixed bug #14493 : Black border in scenario "Showdown in the Northern Swamp"
2009-10-15 19:03:18 +00:00
Gunter Labes
0352fa2472
used int instead of size_t for x,y of the shroud_map...
...
...so we can check for x < 0 || y < 0
2009-10-15 19:03:13 +00:00
Gunter Labes
b0dd518d88
fixed shroud handling
...
* moved the initial shroud removal to the prestart event so it isn't visible
* removed useless x,y keys in remove/place_shroud
* place_shroud for side 1 and 2 so it actually has an effect (allies
share maps)
2009-10-15 19:02:59 +00:00
Ali El Gariani
94a856b228
fix stupid typo in last commit
2009-10-15 18:34:07 +00:00
Mark de Wever
a1b1d56bb1
Fix a compiler warning.
2009-10-15 17:54:59 +00:00
Ali El Gariani
30b77adf43
Simplify column sorting code...
...
...and add handling of xp_max if no AMLA or advancement
2009-10-15 17:49:01 +00:00
Nils Kneuper
f173c70e2f
updated Czech translation
2009-10-15 14:54:18 +00:00
Mark de Wever
9089b486e7
Remove dummy locales for cmake.
2009-10-14 22:19:09 +00:00
Mark de Wever
58d919a129
Remove an unused function.
2009-10-14 22:19:03 +00:00
Mark de Wever
0ddb237dc6
Revert 2009-10-14T21:36:49Z!koraq@xs4all.nl.
...
Don't try to switch branches when git svn dcommit is still running...
2009-10-14 21:47:24 +00:00
Mark de Wever
625cd7be9f
WIP
2009-10-14 21:36:49 +00:00
Mark de Wever
c2f2f3f94a
Remove an unused function.
2009-10-14 21:36:36 +00:00
Jörg Hinrichs
028f02f88d
Changing timer strings from "system time" to "current local time"...
...
...and "turn time" to "time left for current turn".
2009-10-14 21:31:43 +00:00
Mark de Wever
fe4f8d5084
Revert 2009-07-05T07:58:06Z!koraq@xs4all.nl.
...
I've never been able to reproduce the bug it should fix and tested
again after reverting the commit. Reverted it since the commit
introduced bug #14405 . The bug was uncovered by 2009-09-02T21:38:07Z!jeremy.rosen@enst-bretagne.fr.
2009-10-14 21:19:08 +00:00
Gunter Labes
f8b89b6ed6
explicitly log the player names when starting a game
2009-10-14 21:14:30 +00:00
Sergey Popov
b645233ae0
Fallback to setting language with LANGUAGE environment variable...
...
...if setting locale fails.
That should allow setting language to language locale for which isn't
installed, or to language that doesn't have a glibc locale such as
Latin. Unlike dummy locales that doesn't require setting
compile-time/runtime options. Though for now there's no GUI indication
which languages have full locales available and which are set with
LANGUAGE fallback.
2009-10-14 21:09:47 +00:00
Gunter Labes
7cd867ede3
put the username logic in a function
2009-10-14 21:04:41 +00:00
Gunter Labes
f31ce6de45
put the missing user info logic in a function
2009-10-14 21:04:37 +00:00
Gunter Labes
2b2339dede
added a non-const version of find_user()
2009-10-14 21:04:33 +00:00
Gunter Labes
b32deb5074
allow unbanning yourself
2009-10-14 21:04:29 +00:00
Gunter Labes
c889b08d8b
don't try to read a file with no name
2009-10-14 21:04:24 +00:00
Gunter Labes
5ed2a1f9e7
corrected symbolic link source
2009-10-14 20:57:58 +00:00