Update of /cvsroot/super-tux/supertux/src/trigger
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20618/src/trigger
Modified Files:
door.cpp
Log Message:
fixed broken 1-time animations in sprites, fixed collision code returning no-collision if both objects didn't move, some cleanups
Index: door.cpp
===================================================================
RCS file: /cvsroot/super-tux/supertux/src/trigger/door.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- door.cpp 25 Nov 2004 11:16:03 -0000 1.4
+++ door.cpp 26 Nov 2004 13:56:32 -0000 1.5
@@ -77,7 +77,7 @@
Door::action(float )
{
//Check if door animation is complete
- if (!sprite->check_animation()) {
+ if(sprite->check_animation()) {
GameSession::current()->respawn(target_sector, target_spawnpoint);
}
}
|