[Super-tux-commit] supertux/lib/special sprite.cpp,1.26,1.27
Brought to you by:
wkendrick
From: Ricardo C. <rm...@us...> - 2004-10-18 21:09:36
|
Update of /cvsroot/super-tux/supertux/lib/special In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6183/lib/special Modified Files: sprite.cpp Log Message: Implemented mirror actions correctly. Bugfix: right direction of bad guys now working. Also fixed bomb exploding animation and also badguys being draw in top left of level. Index: sprite.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/lib/special/sprite.cpp,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- sprite.cpp 9 Sep 2004 10:40:42 -0000 1.26 +++ sprite.cpp 18 Oct 2004 21:09:26 -0000 1.27 @@ -271,7 +271,7 @@ else context.draw_surface(action->surfaces[(int)frame], pos - Vector(action->x_offset, action->y_offset), layer + action->z_order, - drawing_effect); + action->mirror ? drawing_effect | HORIZONTAL_FLIP : drawing_effect); } void @@ -287,7 +287,7 @@ else context.draw_surface_part(action->surfaces[(int)frame], source, size, pos - Vector(action->x_offset, action->y_offset), layer + action->z_order, - drawing_effect); + action->mirror ? drawing_effect | HORIZONTAL_FLIP : drawing_effect); } int |