fix small bugs in anim engine found while debugging take-off and landing anims
This commit is contained in:
parent
98076220c4
commit
4a048cb586
2 changed files with 3 additions and 1 deletions
|
@ -45,6 +45,8 @@ struct tag_name_manager {
|
|||
names.push_back("recruiting_anim");
|
||||
names.push_back("standing_anim");
|
||||
names.push_back("teleport_anim");
|
||||
names.push_back("pre_movement_anim");
|
||||
names.push_back("post_movement_anim");
|
||||
names.push_back("victory_anim");
|
||||
}
|
||||
std::vector<std::string> names;
|
||||
|
|
|
@ -201,7 +201,7 @@ void move_unit(const std::vector<map_location>& path, unit& u, const std::vector
|
|||
temp_unit.set_location(path[path.size() - 1]);
|
||||
temp_unit.set_facing(path[path.size()-2].get_relative_dir(path[path.size()-1]));
|
||||
animator.clear();
|
||||
animator.add_animation(&temp_unit,"post_movement",path[path.size()-2],path[path.size()-1]);
|
||||
animator.add_animation(&temp_unit,"post_movement",path[path.size()-1],map_location::null_location);
|
||||
animator.start_animations();
|
||||
animator.wait_for_end();
|
||||
disp->remove_temporary_unit();
|
||||
|
|
Loading…
Add table
Reference in a new issue