191 Commits

Author SHA1 Message Date
Dave White
e3bb865eed fixed defender animations 2004-12-29 23:11:45 +00:00
Guillaume Melquiond
a1af439ab1 Remove unused parameter. 2004-12-04 14:50:20 +00:00
Guillaume Melquiond
d96027d481 Partially fix teleportation (#10588, #11213).
There are still some graphical glitches, but they may be not related
to this part of the code.
2004-12-04 14:25:12 +00:00
Guillaume Melquiond
f1dc22f839 Quick and dirty hack to translate the 'system default language' string. 2004-11-30 21:14:13 +00:00
Dave White
c661b3043a reduced warnings to 0 on VC++ 2004-11-18 04:08:33 +00:00
Guillaume Melquiond
864385898e Added Boucman's patch on teleportation animation, after a few corrections.
This patch adds a teleport_anim WML tag. Also add the Silver Mage to
the test scenario so that it can be tested. And comment about a long
standing bug in move_unit_between so that it does not get forgotten
again.
2004-09-26 08:20:01 +00:00
Guillaume Melquiond
eb637d4466 I'm surprised nobody ever complained about this:
the units were not submerged when moving/fighting, they were
darkened. It was caused by a missing parameter in the calls to
draw_unit.
2004-09-19 16:22:21 +00:00
Guillaume Melquiond
8596517b4c Switched unit displaying to the new logging system 2004-09-18 21:53:01 +00:00
Guillaume Melquiond
d92c1a6b00 Remove dead code. 2004-09-18 12:04:28 +00:00
Guillaume Melquiond
46ec8882de Can a multiplication by zero (i/nsteps) be anything else than a bug?
Also remove the casts than unnecessarily clutter the code.
2004-09-18 11:22:51 +00:00
Guillaume Melquiond
b4c1566d61 No need to recompute tiles adjacent to the source tile at each step of the move. 2004-09-18 11:13:07 +00:00
Guillaume Melquiond
8706cacba2 Factor and cleanup map-follow-unit code 2004-09-18 10:40:29 +00:00
Guillaume Melquiond
86d1de55a3 Small cleanup: references are not pointers, no need to have convoluted code. 2004-09-18 10:06:57 +00:00
Guillaume Melquiond
c6ebafd443 Comment out debug message displayed on each frame of a unit animation 2004-09-12 12:33:08 +00:00
Dave White
f173278be0 made units disappear properly when they die 2004-08-30 02:03:07 +00:00
Philippe Plantier
21a3d8921f Fixed the tools in src/tools not building 2004-08-28 21:16:17 +00:00
Dave White
0172e51f45 removed some unnecessary diagnostics (CVS internal) 2004-08-25 02:59:51 +00:00
Dave White
5e4d3424e5 fix to floating labels sometimes not displaying in accelerated mode 2004-08-22 21:37:39 +00:00
Dave White
9acf309805 made it so units moving through water will be submerged as they move 2004-08-14 05:14:00 +00:00
Dave White
513c91b85e made it possible to have multi-animation attacks 2004-08-08 22:18:34 +00:00
Philippe Plantier
94dfd0f0f3 Fixed a bug where a unit moving with [move_unit_fake] segfaulted the game. 2004-08-08 16:28:43 +00:00
Dave White
393ec6cd91 made it so you can't see invisible units when they move.
Limited length of schema items in compressed WML to make a DoS attack
harder to perform
2004-08-07 17:21:59 +00:00
Dave White
619dc4b40b added 'speed scaling' for different terrain types 2004-07-31 03:30:47 +00:00
Philippe Plantier
8bdaccff45 [[Animation fixes]]
* Fixed attack animation not being complete.

* Fixed absence of animation when units without attack frame attack.
2004-07-20 20:27:49 +00:00
Philippe Plantier
ac441889d9 [[Animation refactoring]]
* Refactoring of all animation code in unit_display and halo.

* Adding animated.hpp, and the animated<T> template.

* Partial rewrite of image.?pp for speed: looking up images was what
  was slowing the game

* Replacing all SDL_Surface*, and scoped_sdl_surface, with
  shared_sdl_surface, which was renamed surface.

* Optimizing halo movement when unit moves

* Inlining some stuff for performance reasons

* Optimizing invalide_all redraws

* Adding support for animated terrain images
2004-07-18 19:02:25 +00:00
Dave White
79a5f2a21e added support for defensive animations 2004-06-23 15:54:16 +00:00
John B. Messerly
3d67c495b3 Trivial developer-only change: Fixed various double->int and newline warnings. 2004-06-02 02:04:28 +00:00
Dave White
768d90e9db added 'first strike' ability...
...and assigned it to Spearman, Halbardier, and Pikeman
2004-05-31 00:14:52 +00:00
Dave White
aea345486d made halo for Elder Mage now align properly 2004-05-29 04:18:12 +00:00
Dave White
56af8182f5 added new halo effect to Delfador's attack.
Improved village naming in random maps
2004-05-28 20:38:37 +00:00
Dave White
35c82f9581 changes to network code to attempt to fix 'dropped chat messages' bug 2004-05-27 15:53:23 +00:00
Dave White
5d1979542e added halo effects for mage unit 2004-05-26 23:09:40 +00:00
Dave White
bc61faf13e Added per-unit haloing, including haloes for Mage of Light 2004-05-25 18:27:37 +00:00
Dave White
431c713d20 added missile haloes, with sample for Red Mage 2004-05-25 17:07:03 +00:00
Dave White
612d64893d new files to be used in haloing effects 2004-05-25 15:04:48 +00:00
Dave White
d0873ea1b8 added support for different images when a unit is moving 2004-05-25 14:48:14 +00:00
John B. Messerly
0bdf49c8df Developer-only change: fixed remaining g++ compiler warnings:
double->int casts, and no newlines at the end of files.
2004-05-23 18:19:30 +00:00
Dave White
dbf5076c7f made chat box in multiplayer lobby support scrolling and wrapping 2004-05-06 16:17:02 +00:00
Dave White
04acf18631 attempt to fix bug with units moving slowly 2004-04-30 21:36:14 +00:00
Dave White
0310f739d6 added in patch to allow 'image_healing' and 'image_leading' animations...
...for units performing those actions
2004-04-30 20:01:51 +00:00
Dave White
accbc0f772 code refactoring - simplified the 'display' module 2004-04-22 18:58:59 +00:00