r69 - trunk/src/objects
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Oct 2 19:00:48 EDT 2004
Author: jonas
Date: 2004-10-02 19:00:47 -0400 (Sat, 02 Oct 2004)
New Revision: 69
Modified:
trunk/src/objects/zombie.cpp
Log:
fixes a bug (zombie misbehaved in Wind)
Modified: trunk/src/objects/zombie.cpp
===================================================================
--- trunk/src/objects/zombie.cpp 2004-10-02 22:41:31 UTC (rev 68)
+++ trunk/src/objects/zombie.cpp 2004-10-02 23:00:47 UTC (rev 69)
@@ -28,9 +28,7 @@
void Zombie::idle(Uint16 dt) {
hspeed=0;
Character::idle(dt);
- if (!(state&STATE_FALL)) {
- runAI(dt);
- }
+ runAI(dt);
}
void Zombie::ai_left(Uint16 dt) {
@@ -42,6 +40,8 @@
} else if (hit.touch&DIR_LEFT) {
move(dt);
unsetState(STATE_LEFT);
+ } else if (state&STATE_FALL) {
+ move(dt);
} else if (!(hit.touch&DIR_DOWN)) {
unsetState(STATE_LEFT);
hspeed=0;
@@ -59,6 +59,8 @@
} else if (hit.touch&DIR_RIGHT) {
move(dt);
setState(STATE_LEFT);
+ } else if (state&STATE_FALL) {
+ move(dt);
} else if (!(hit.touch&DIR_DOWN)) {
setState(STATE_LEFT);
hspeed=0;
More information about the lostpenguins-commits
mailing list