Guillaume Melquiond
afdf522273
Removed [defense] ability.
2010-09-12 18:37:52 +00:00
Jérémy Rosen
29fe502d8a
optimize the drawing loop, apply patch #1952 by VIR
2010-09-12 13:17:10 +00:00
Anonymissimus
d2746b9873
Fixed [filter_adjacent] only matching for one's own side's units...
...
...if is_enemy= unspecified.
2010-09-09 13:41:02 +00:00
Guillaume Melquiond
eeb047de55
Fixed file headers so that they match the content of the COPYING file.
2010-09-01 21:12:38 +00:00
Guillaume Melquiond
6a99834173
Removed max_value handling from the [defense] ability.
2010-08-29 20:50:49 +00:00
Mark de Wever
b21f23db09
Remove duplicate definitions of string_map.
...
Issue spotted by cppcheck.
2010-08-29 20:13:31 +00:00
Jérémy Rosen
03dd653b6c
add a cache for WML added animations, partial...
...
...(and probably final) fix for bug #16363
2010-08-29 19:05:21 +00:00
Guillaume Melquiond
170f76c31b
Added a [defense] ability. (Fix for bug #11388.)
2010-08-28 20:06:04 +00:00
Ali El Gariani
fbf32b36d3
Optimize rendering of flying units and fix tiny glitch.
...
This helps because they often have standing anims (gain few fps during
bat season)
Done by stopping considering flying as 1% submerged, which was usually
not visible but uselessly triggered the expensive submerged
effect. Instead use -1, as "negative depth", which make more sense.
2010-08-28 14:39:28 +00:00
Jérémy Rosen
751068d255
fix unit-wide halos not being correctly corrected for terrain
2010-08-25 19:27:00 +00:00
Guillaume Melquiond
f87e2dd59c
Avoided querying attributes twice.
...
Avoided roundtrip through strings.
2010-08-20 22:53:02 +00:00
Guillaume Melquiond
ae7cc0a6d2
Modified vconfig so that it is no longer forced...
...
...to return translatable strings after variable expansion.
In particular, the engine no longer tries to expand variables inside
plain numbers or booleans.
2010-08-19 22:07:53 +00:00
Guillaume Melquiond
42835b54d8
Delayed commit of the new unit config until...
...
...all the attributes of the old one have been handled, as the old
config may alias the current one, hence causing attribute values to be
loaded from the committed config.
2010-08-10 15:50:48 +00:00
Guillaume Melquiond
72b4d7836d
Fixed private units created without proper location.
2010-08-08 06:55:40 +00:00
Guillaume Melquiond
88245b8ff9
Avoided copying config objects just before deleting them from units.
...
(Partial fix for bug #16363.)
This brings the profile footprint of config copy constructor from 18% to 8%.
2010-08-06 14:05:09 +00:00
Guillaume Melquiond
091f2f6404
Optimized the special case [filter_wml][variables] when matching units.
...
(Partial fix for bug #16363.)
This brings the profile footprint of matches_filter from 28% to 3%.
2010-08-06 10:33:04 +00:00
Ali El Gariani
732bd390a4
Use 'orb' instead of 'ball' in game_config.
2010-08-04 03:22:25 +00:00
Ali El Gariani
c143c82cdf
Use image::locator instead of game_config strings for hexes rendering.
2010-08-04 03:22:21 +00:00
Ali El Gariani
52bccc12fa
Move all game_config foo_image into sub-namespace images...
...
...(as we do for sounds).
Drop the _image suffix and reorganize order.
2010-08-04 03:22:00 +00:00
Fabian Müller
278673871c
Fixed a missing brake in a switch case construct, spotted by Crab.
2010-08-02 11:30:25 +00:00
Fabian Müller
79113a154d
Fixed missing code for the liminal alignment.
2010-08-02 11:09:27 +00:00
Gabriel Morin
69a683b99e
Made global function get_visible_unit() return a non-const pointer.
2010-08-01 04:24:08 +00:00
Mark de Wever
a99c78e0d8
Update doxygen comment.
...
The filename after the @file comment is optional (spotted by alink).
2010-07-26 21:32:18 +00:00
Ali El Gariani
b1a5b421fa
Use Doxygen command "@deprecated 1.9.2"...
...
...to indicate what need to be removed and when
2010-07-26 00:32:04 +00:00
Ali El Gariani
c7c222380d
Clean the use of @todo for Doxygen
...
Use ///@todo bla or /** @todo bla */
with lowercase and no colon after todo
2010-07-26 00:31:55 +00:00
Jérémy Rosen
9c85262c71
fix bug #16282 : bats flapping their wings while petrified
2010-07-23 16:50:06 +00:00
Guillaume Melquiond
c62434de89
Removed unused function sort_units.
2010-07-20 10:46:51 +00:00
Ignacio R. Morelle
2b2c4ff982
[effect] violate_maximum= takes now a real boolean value instead of...
...
...treating any non-empty value as true.
2010-07-19 22:20:45 +00:00
Jérémy Rosen
f605523ea1
make unit animation haloes work,
...
...this includes multiple calls to halo::unrender in each redraw, but
I don't master the in and outs of haloes completely, so if someone
could check that it's safe I would be grateful
2010-07-17 10:19:24 +00:00
Gabriel Morin
42e16c8102
Whiteboard: Modify the system for applying temp modifiers...
...
...on the unit map, to prepare for movement modifications.
2010-07-04 07:58:42 +00:00
Ali El Gariani
7d4e888a68
use resources::units in get_visible_unit()
2010-06-24 01:49:22 +00:00
Ali El Gariani
3380c92571
use resources::units in find_visible_unit
2010-06-24 01:49:19 +00:00
Ali El Gariani
a16260cd61
Use resources in unit::invisible()
...
It was already using it via get_ability_bool("hides")
2010-06-24 01:49:14 +00:00
Ali El Gariani
c92728f784
Remove useless parameter and code redundancy
2010-06-24 01:49:03 +00:00
Jérémy Rosen
8dcdcfa3d2
new animation disabled_ghosted for whiteboard
2010-06-18 20:13:52 +00:00
Ali El Gariani
3fe15b2346
Remove units_ from unit class, and always use resources::units instead.
...
(some polishing are still needed)
2010-06-16 20:41:54 +00:00
Jérémy Rosen
61ded1dfe7
prevent ghosted units from having idle animations
2010-06-16 18:45:18 +00:00
Ali El Gariani
4ab3effcea
Remove now useless parameter
2010-06-15 21:22:29 +00:00
Ali El Gariani
2d024fc524
Remove now useless parameter
2010-06-15 21:22:25 +00:00
Gabriel Morin
8443f25d49
Added "ghosted" animation to be used with whiteboard
2010-06-14 22:59:33 +00:00
Guillaume Melquiond
4dd249eb06
Removed redundant attribute lookup.
2010-06-12 18:58:48 +00:00
Mark de Wever
82a6cf23ec
Make Wesnoth more compatible with C++0x (g++-4.5).
2010-06-12 16:01:39 +00:00
Gabriel Morin
9926bdf515
Added common superclass to temporary_unit_mover and temporary_unit_placer,
...
to allow placing them in the same stl container.
2010-06-07 21:11:39 +00:00
Ali El Gariani
7a6a68e2d1
tiny optimizations
2010-06-06 14:37:35 +00:00
Ali El Gariani
51ab72860e
Replace all uses of 'colour' by 'color' in code.
2010-06-03 01:47:06 +00:00
Ali El Gariani
d9997e472d
Use only SDL_Color and stop using its synonym SDL_Colour
2010-06-02 22:14:32 +00:00
Guillaume Melquiond
38369daa3d
Fixed unit zoc not being stored as a boolean.
...
Added a nonintrusive workaround for reloading earlier 1.9 savefiles.
2010-05-28 16:36:32 +00:00
Guillaume Melquiond
825e776995
Reverted 2010-05-11T20:11:56Z!jeremy.rosen@enst-bretagne.fr as it just works around the real bug.
...
(was patch #1668 )
Fixed units being hidden anew after reloading. (Fix for bug #15889.)
The patch changes the "hidden" status to "uncovered", which has the
opposite semantic and hopefully a less misleading name.
No backward compatibility is needed, since the saved status is
currently useless and not worth restoring.
2010-05-25 21:10:12 +00:00
Mark de Wever
29967e777a
Strip trailing whitespace.
2010-05-24 17:44:44 +00:00
Guillaume Melquiond
5a4849c898
Avoided costly roundtrip through strings.
2010-05-24 08:01:49 +00:00