Author: boucman
Date: Sat Nov 22 19:52:54 2008
New Revision: 30971
URL: http://svn.gna.org/viewcvs/wesnoth?rev=30971&view=rev
Log:
fix teleport animations not changing the unit facing
Modified:
trunk/src/unit_display.cpp
Modified: trunk/src/unit_display.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit_display.cpp?rev=30971&r1=30970&r2=30971&view=diff
==============================================================================
--- trunk/src/unit_display.cpp (original)
+++ trunk/src/unit_display.cpp Sat Nov 22 19:52:54 2008
@@ -34,6 +34,7 @@
if (!disp->fogged(a)) { // teleport
disp->place_temporary_unit(temp_unit,a);
+ temp_unit.set_facing(a.get_relative_dir(b));
unit_animator animator;
animator.add_animation(&temp_unit,"pre_teleport",a);
animator.start_animations();
@@ -41,6 +42,7 @@
}
if (!disp->fogged(b)) { // teleport
disp->place_temporary_unit(temp_unit,b);
+ temp_unit.set_facing(a.get_relative_dir(b));
disp->scroll_to_tiles(b,a,game_display::ONSCREEN,true);
unit_animator animator;
animator.add_animation(&temp_unit,"post_teleport",b);
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits