diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/shyguy.cpp | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shyguy.cpp b/src/shyguy.cpp index 23a81f3..c30690a 100644 --- a/src/shyguy.cpp +++ b/src/shyguy.cpp @@ -216,7 +216,9 @@ daShyGuy *daShyGuy::build() {  	void daShyGuy::spriteCollision(ActivePhysics *apThis, ActivePhysics *apOther) {  		if (acState.getCurrentState() == &StateID_RealWalk) { -			pos.x = direction ? pos.x + 1.5 : pos.x - 1.5; + +			pos.x = ((pos.x - ((dEn_c*)apOther->owner)->pos.x) > 0) ? pos.x + 1.5 : pos.x - 1.5; +			// pos.x = direction ? pos.x + 1.5 : pos.x - 1.5;  			doStateChange(&StateID_RealTurn); }  		if (acState.getCurrentState() == &StateID_FireKnockBack) {  | 
