Add a new max_animation_time_ variable that checks whether the time
for the movement animation exceeds the potential time. This will
restrict the time interval to match the offset 0~1:200,0~1:200,etc.
as the unit is moving.
Turns out I mistook @celticminstrel's opinion that we should use include guards over pragma (737916e).
Since all major compilers support `#pragma once`, there's no reason not to use it.
For future mergability reasons, this excludes src/spirit_po and src/xBRZ. It also excludes src/boost-patched.
Several header files used the .tpp extension, which means that they are not correctly detected as C++ (though this can be overridden and has been for one case in the XCode project). The .tpp extension is one of several intended for private template instantiations, but these headers were topleve headers included in many places.
This make screen update (zooming, ToD changes, etc) several times
faster, gain some fps (esp. for complex map), optimize some animated
terrains (stop refreshing empty parts) and spare some memory
(sometimes, not clear yet)
Also remove the noise in :layers.
Note: This is an improved version of 2010-10-06T16:07:43Z!alinkmaze@gmail.com from the OGL branch
* if animations are jumpy, this should be the first suspect
* slowing down on hard to cross tiles has been removed as discussed on
IRC
* i'm not satisfied with that completely yet, expect some more work
here...
No regression expected. if anything changes, please tell me.
Note that:
* Fire and forget doesn't work yet, don't try using it
* I will probably change how mvt anims work as discussed in IRC, but
that's for a future commit
- update the anim before rendering it (but continue to avoid skipping
frames) This fix a off-by-one frame bug in few cases where the update
is not automatic (e.g. last frame of idle anim was sometimes missed)
- now a starting anim is considered as a change and so in need_update state
- fix some inconsitencies with the use of update_last_draw_time()
* 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