191 Commits

Author SHA1 Message Date
Ali El Gariani
c306207995 remove the now unused unit_display::unit_selected (we use unit::set_selecting) 2007-11-04 15:22:33 +00:00
Jérémy Rosen
4403daa2e0 more moving around of backward compatibility stuff 2007-11-02 18:50:35 +00:00
Ali El Gariani
faa6bc5160 Fix blink/refresh of the ellipse in the unit-select animation
Remove the scrolling to the newly-selected unit (when partially
off-screen) because it was very disturbing and it slowed user inputs
(+ had a little bug: hex was empty during scrolling)
2007-11-02 13:32:23 +00:00
Jérémy Rosen
3a13bf3d8a add a specific animation when selecting a unit 2007-11-01 23:09:38 +00:00
Jérémy Rosen
a0b07d5c10 moving around more deprecated code, so I don't forget anything when upgrading... 2007-11-01 21:51:48 +00:00
Jérémy Rosen
6c7fd7656e more code refactoring 2007-10-28 12:34:59 +00:00
Jérémy Rosen
dd48d3d8db allow multiple sub-animations, in all animations (not just missile in fight) 2007-10-28 10:17:53 +00:00
Jérémy Rosen
f163feee4a how could I commit such horrible code in the first place ??? 2007-10-05 20:45:37 +00:00
Eric S. Raymond
286bf0d612 Attempt to demysify the offset calculation in animations. 2007-09-18 15:33:58 +00:00
Jérémy Rosen
d84b7f63b3 move attack animations out of [attack] and into [unit], code+wmllint 2007-09-08 07:51:22 +00:00
Gunter Labes
ae9e10f260 codeclean run
set svn:eol-style to native where missing
2007-08-31 19:09:40 +00:00
Hans Joachim Gurt
8a53bbb4b0 doxygen, comments 2007-08-27 05:23:09 +00:00
Ali El Gariani
e54913e484 Fix a little bug: undo a movement starting from an impassable terrain
(which is possible) was very slow (99 times slower), need ~15sec.

Note also that a unit with a lot of MP but high movement cost have the same
problem. So now use 10 as maximum MP cost for the animation speed.
Still very slow (~1sec/tile), but you can use acceleration if it's frequent.
2007-08-18 17:55:01 +00:00
Mark de Wever
080eb69f60 Updated the headers to state GPL 2+ and a few changelog cleanups. 2007-08-15 13:41:56 +00:00
Mark de Wever
bb01934b85 A rather large update which updates the copyright info
* Wesnoth is distributed under the terms of the GPL version 2, made
  that more explicit

* updated the copyright range to 2007

* updated Dave's email adress
2007-07-21 07:28:04 +00:00
Eric S. Raymond
0f4f6c2d0f Preferences module partitioned...
...so the editor can use a version that doesn't link in the entire
universe.  Most of the changes just replace inclusions of
"preferences.hpp" with a new "game_preferences.hpp".
2007-07-05 19:13:39 +00:00
Eric S. Raymond
9f11735f32 Split display.h up
in order to remove the last game_display dependency from the map
editor.
2007-06-28 10:25:30 +00:00
Eric S. Raymond
43e5de9fee Huge patch pretty much all name changes.
display is now the base class and game_display the derived; code that
can use the base class because it doesn't need to grok units or teams
(like preferences.cpp and hotkeys.cpp) does so.
2007-06-28 05:32:36 +00:00
Ali El Gariani
24fd4d56c0 [[Tweak presentation of moving units]]
- better fix for the bug "briefly empty hex if we must scroll to a
  moving unit" than commit 18093.

- avoid the problem which occur when trying to draw orb of moving
  temporary unit (see 2007-06-06T09:16:20Z!alinkmaze@gmail.com)

- now the orb+bars are hidden after the end of the inital scrolling
  and the start of the move

- add a check for strange 1-hex path
2007-06-06 11:19:38 +00:00
Ali El Gariani
eab3beb54f The temporary unit use introduced in 2007-06-05T14:33:44Z!alinkmaze@gmail.com...
...breaks an assert when do the first fake move in IE1.

I remove it for the moment, because i don't see the error. There is
still a bug with the lich not caused by this commit but maybe related
to the problem.
2007-06-06 09:16:20 +00:00
Ali El Gariani
99c649c6df Fix bugs when scrolling to show unit's move:
- show a temporary unit *before* the scrolling, if not we will scroll
  to a (briefly) empty hex

- get the starting time *after* the scrolling, if not the animation
  will miss the time elapsed

and the unit jump to the current time
2007-06-05 14:33:44 +00:00
Ali El Gariani
bce098a4c6 Remove unused variables, some adjacent hexes and one from the previous commit, 2007-06-05 14:16:09 +00:00
Ali El Gariani
ee73fbe795 Remove some useless code when moving a unit (invalidations and draw()):
- no need to invalidate adjacent hexes after each step, already done
  when redrawing units with offset and walking

- the last "else" had no effect

- use set_route(NULL) to clear the path, so invalidate it only if present
2007-06-05 14:01:58 +00:00
Ali El Gariani
15c71ddba8 Fix a bad casting / rounding
causing instantaneous move of unit when using acceleration
2007-06-04 20:02:04 +00:00
Mark de Wever
ff216afd2c removed display::lock_updates() and display::update_locked()
they had a comment which indicated they were scheduled for removal
(over 2 years old) and fixed the callers.
2007-06-02 14:09:11 +00:00
Jérémy Rosen
5705665245 extra text on a hit (like poisoned message) is properly centered again 2007-06-02 09:06:22 +00:00
Ali El Gariani
195a5200e3 Correct the fix for bug #9191.
Update the sidebar after a recruit only if it happens under the mouse.
The previous fix caused a quick highlight of the hex, which was needed
by the bad current sidebar code.

Also I'm now less sure that we want to always display info about the
enemy recruiting.

And there is the little question: the acting unit is the recruiter or
the recruited?
2007-05-29 18:53:15 +00:00
Ali El Gariani
b2b21377a0 Fix bug #9191, Display in sidebar the info about the last recruited unit
(even by ai) You can already do thhis by moving your mouse on it and
it's good useful info since it's *new* units (I don't see any problem
to lose the current highlighted unit, since other actions already do
this)
2007-05-29 03:24:58 +00:00
Ali El Gariani
4cd55ef419 update the unit info in sidebar after a move 2007-05-28 23:27:36 +00:00
Ali El Gariani
ef5f9994f6 Erase footsteps at the end of the move.
This is mainly a simple fix to little bugs: (def% was not displayed
while moving and footsteps were deleted 1 hex ahead of the unit) But
there is other solutions to these bugs, the main point is: See the
origin of the move and why erase footsteps just after you quit the hex?
2007-05-28 23:01:26 +00:00
Mark de Wever
c7351b1885 changed scroll_to_tiles() to use gamemap::location 2007-05-27 08:51:40 +00:00
Mark de Wever
b5686b7911 converted scroll_to_tile() to use gamemap::location 2007-05-26 23:39:22 +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
Jérémy Rosen
79dcf5eb38 code refactoring in unit animations,
preparing the grand animation unification scheme...
2007-05-26 08:20:35 +00:00
Jérémy Rosen
e105dea465 fix compilation error in the editor 2007-05-12 16:18:21 +00:00
Jérémy Rosen
e111e5d439 unit drawing logic cleanup,
should fix various acceleration bugs and restore status bars during fight
2007-05-12 10:33:21 +00:00
Jérémy Rosen
e97d041fd8 fix filtering on most fighting animations 2007-04-18 19:07:46 +00:00
David Philippi
f231fb12e0 merged patch #714 by silene
- removal of dead stuff and static linkage marking for internal functions
2007-04-06 12:26:02 +00:00
Mark de Wever
9184ec4ee6 reapply the halo changes,
...boucman found the cause of failure; shouldn't have been 64 bit specific.

added halo::NO_HALO as value for no halo.

src/unit_frame.cpp will need some more cleaning up but will be done
another time.
2007-03-25 13:52:15 +00:00
Mark de Wever
19be24b40d avoid halos on items being shown when the shroud is active.
Note the fix is a bit of a kludge so if somebody has a cleaner
solution, please make it so.  Changelog entry will follow, this fixes
bug #8523
2007-02-22 20:31:06 +00:00
Jérémy Rosen
3e51945fc6 missiles take unit_height_adjust into account 2007-02-19 09:47:18 +00:00
Mark de Wever
15b1727545 merge trunk 2007-01-20T19:47:57Z!koraq@xs4all.nl..2007-01-24T19:19:50Z!koraq@xs4all.nl 2007-01-24 19:42:19 +00:00
Mark de Wever
7ab54bed1d merge trunk 2006-12-03T13:32:46Z!koraq@xs4all.nl..2006-12-10T11:31:19Z!koraq@xs4all.nl 2006-12-10 12:46:13 +00:00
Mark de Wever
c347e9790b Added some typedefs for the terrain_translations and shorted the names a little.
Added some extra comment to terrain_translation.hpp.

Applied these changes to all users and did some whitespace enhancement.

Various minor code cleanups while busy.
2006-12-03 11:48:45 +00:00
Mark de Wever
ff1143244f merge trunk 2006-11-15T18:25:24Z!koraq@xs4all.nl..2006-11-27T17:10:23Z!koraq@xs4all.nl 2006-11-27 17:33:17 +00:00
Mark de Wever
81ec9b41bc Merged trunk 2006-10-31T10:09:11Z!edb@sigluy.net..2006-11-15T18:25:24Z!koraq@xs4all.nl 2006-11-15 19:32:37 +00:00
Mark de Wever
7feba90996 Merged trunk 2006-10-20T17:19:30Z!crazy-ivanovic@gmx.net..2006-10-31T10:09:11Z!edb@sigluy.net 2006-10-31 18:12:46 +00:00
Mark de Wever
f3fcdf4742 Merged commit 2006-10-10T18:52:47Z!koraq@xs4all.nl to 2006-10-20T17:19:30Z!crazy-ivanovic@gmx.net from the trunk...
...and fixed the conficts.
2006-10-20 19:29:08 +00:00
Mark de Wever
7ad017f6f3 A big merge with the local changes so far.
Removed most of the terrain char assumptions but not ready yet. Also a
lot of bugs are left.
2006-10-10 18:52:47 +00:00
Jérémy Rosen
a1bb052370 fix a trunk only OoS, mainly when using turbo 2006-09-28 17:51:15 +00:00