Commit Graph

17005 Commits

Author SHA1 Message Date
Ali El Gariani
222af7643d user interface: fixed a lag in the path rendering when there is a lot of units 2007-05-28 05:24:15 +00:00
Ali El Gariani
7592864522 WML engine: removed deprecated keys image_healing and image_halo_healing 2007-05-28 05:18:38 +00:00
Ali El Gariani
35eaec238d Fix the really annoying lag of the path drawing when a lot of units are present
It was a very stupid error from 7 weeks ago with the pathfinding
function to calculate the turns to reach (used a parameter unit_map
passed by value, so the link with the number of units )
2007-05-28 03:50:58 +00:00
Patrick Parker
61c607ec35 rename dimension_measurements "frame" to the more accurate term "interior" 2007-05-28 03:38:38 +00:00
Ali El Gariani
79b5b00d07 Optimization of get_flag:
don't check if the flag is shrouded because we already know that it is not.

And I think that the previous code didn't cause bug precisely because
it was never shroudred there
2007-05-27 22:34:11 +00:00
David Philippi
83f847b6cd swedish translation update 2007-05-27 22:05:22 +00:00
Ali El Gariani
f49f211fd1 Revert a parentheses error from [[SVN:17879 ]]
...causing to display red flags on all villages.  Changed the bad
indentation to prevent other future error.
2007-05-27 22:01:52 +00:00
Mark de Wever
052da3a591 inline display::set_turbo_speed() 2007-05-27 19:21:55 +00:00
Lari Nieminen
43cc7c18c8 Translated the remaining image_healing= and image_halo_healing=
...into proper [healing_anim]ations.
2007-05-27 18:19:09 +00:00
Ali El Gariani
b118ba9cbc remove obsolete and now unused data and functions...
...for the keys image_healing and image_halo_healing
2007-05-27 18:02:28 +00:00
Ali El Gariani
8d9690e43c use standard image (with duration 500) to default healing animation
need to adapt obsolete keys in paladin and maybe 1 or 2 mermaid

I will also remove the remaining dead code about these keys
2007-05-27 17:27:30 +00:00
Benoît Timbert
7d09b734d3 Serbian translation update (patch #714) 2007-05-27 17:14:15 +00:00
Mark de Wever
0182d47712 removed the automatic shroud outside the map,
it reintroduces some bugs but it's the next step to change the
background.
2007-05-27 17:01:50 +00:00
Gunter Labes
864c760a78 added the missing top rows 2007-05-27 16:24:06 +00:00
Mark de Wever
a106067a84 on map only files the first line is no longer skipped...
...when converting the maps. esr could you review the patch, Soliton
tested it and seems to work.
2007-05-27 16:19:33 +00:00
Mark de Wever
13ffb08c9c removed support for the obsolete 1.3.1 terrain format 2007-05-27 15:21:26 +00:00
Mark de Wever
ad6a0efaf6 The map contained the _off terrain which shouldn't have been used.
Changed to cavewall, doesn't look great but can be changed in the editor again.
2007-05-27 15:20:21 +00:00
Mark de Wever
249d3039e9 bump minimum savegame version to 1.3.2
since the automatic terrain translation is about to be removed
2007-05-27 14:53:44 +00:00
Mark de Wever
d3972c1d02 removed support for deprecated heals=true 2007-05-27 14:48:38 +00:00
Nils Kneuper
b7c57f8545 updated Italian translation (manpages) 2007-05-27 11:24:06 +00:00
Mark de Wever
44ba825a09 convert the border tiles to the new off map types.
This is step 1 to change to the new background
2007-05-27 11:17:21 +00:00
Mark de Wever
fbabe2290b got rid of display::map_w() and now uses the value from the theme code 2007-05-27 10:13:28 +00:00
Jérémy Rosen
557b2aea3d fix crash on ranged attack...
this is very hacky, but cleaning will have to wait for deeper structural change
2007-05-27 10:00:05 +00:00
Mark de Wever
bc4b91d0d1 renamed to following functions
display::x() => display::w()
display::y() => display::h()
display::mapx() => display::map_w()

Also did some small cleanups. 

map_w() is buggy (uses 140 hardcoded instead of theme value) and might
get removed.
2007-05-27 09:54:30 +00:00
Martin Renold
bb054324a3 fixed comment typos 2007-05-27 09:20:37 +00:00
Mark de Wever
509cd5dff1 cleaned up some comment 2007-05-27 09:07:35 +00:00
Mark de Wever
c7351b1885 changed scroll_to_tiles() to use gamemap::location 2007-05-27 08:51:40 +00:00
Jérémy Rosen
733d65b4c6 remove forgotten debug messages 2007-05-27 08:47:19 +00:00
Mark de Wever
ee6e372c2e changed get_terrain_images() to use gamemap::location 2007-05-27 08:33:06 +00:00
Mark de Wever
277820f09b some cleanups and added some comment 2007-05-27 08:23:22 +00:00
Mark de Wever
d167945df2 changed draw_terrain_on_tile() to use gamemap::location 2007-05-27 08:11:06 +00:00
Patrick Parker
095cd4a645 note: global.hpp must be first! 2007-05-27 01:50:07 +00:00
Patrick Parker
357b44aede make dimension_measurements part of dialog state instead of passing it 2007-05-27 01:47:12 +00:00
Ali El Gariani
e8c6e165c4 Clean and comment the code to cancel a dialog (as wisely suggested by Sapient).
The initial big "if" started to be unreadable, now it's divided by
input type.  I keep the right-click IN a (context-)menu to cancel it,
but I disagree with this.  The normal (and handy) desktop behavior is
to allow right-click selection of item in menu.
2007-05-27 01:24:58 +00:00
Ali El Gariani
6f900ed1d6 Remove a never reached value...
...and simplify the little misleading local code causing it keeping
the same good behavior: you can't cancel a dialog with options and
only an OK button
2007-05-27 00:02:40 +00:00
J.W. Bjerk
156907fa27 modified HttT campaign starting image to include Konrad and Li'sar. 2007-05-27 00:02:15 +00:00
Ali El Gariani
3195928e3c graphics: added automatic side-coloring of custom flags 2007-05-26 23:55:09 +00:00
Mark de Wever
b46b21ec44 converted get_flag() to use gamemap::location 2007-05-26 23:53:57 +00:00
Benoît Timbert
38eb62b89a Workaround: Fix the teamname displayed
("North-West" was displayed for the 5 other players)
2007-05-26 23:49:58 +00:00
Benoît Timbert
6b40bdd54e New french translator 2007-05-26 23:45:47 +00:00
Mark de Wever
b5686b7911 converted scroll_to_tile() to use gamemap::location 2007-05-26 23:39:22 +00:00
Ali El Gariani
2ff87a5542 don't allow right-click cancel on dialog with options and just an OK button
also better detection of what's the outside of the dialog

(still not perfect: I must add title and buttons)
2007-05-26 23:24:05 +00:00
Mark de Wever
886df389f0 display has a lot of functions with x and y parameters...
...where it's not clear what these are.

started to change functions which get a map location to use gamemap::location
this commit does fogged() and shrouded(), more will follow
2007-05-26 23:13:07 +00:00
Mark de Wever
dc1ca61775 small header dependency cleanup 2007-05-26 22:21:11 +00:00
Mark de Wever
3dd6d9d214 rewrote timestring() so it looks better 2007-05-26 22:06:18 +00:00
Mark de Wever
e06a318932 added some const modifiers,
need them for testing and the functions can be const anyway
2007-05-26 20:39:51 +00:00
Ali El Gariani
c0c9a3eb26 Add a handy mouse shortcut:
right click outside of a dialog to close it. Very usefull to cancel
the attack dialog.

The current implementation for detecting the dimension of the dialog
is maybe a bit dumb but works fine for this simple use.
2007-05-26 19:51:02 +00:00
Mark de Wever
6e04a003db remove some unused variables and fix a small comment typo in my previous commit 2007-05-26 19:50:48 +00:00
Ali El Gariani
ce8926f098 change the context menu behavior:
when right clicking outside of it, close it and don't send the right
click to the backround (which in this case cause the opening of an
other context menu) I also need this for the future general
outside-right-click-close-dialog
2007-05-26 19:46:10 +00:00
Mark de Wever
755947764e did some cleaning up;
zoom() could change the zoom value and return the factor
now split in 2 functions, also namechange of default_zoom()
2007-05-26 19:38:43 +00:00