git » fp-git.git » commit 0987b6b

bugfix in tiles

author ecalot
2004-10-24 16:57:13 UTC
committer ecalot
2004-10-24 16:57:13 UTC
parent e9717ea82e1ee5df09a5539e786feb8c68336f0b

bugfix in tiles

FP/src/ker/states.c +1 -1

diff --git a/FP/src/ker/states.c b/FP/src/ker/states.c
index 723c1c3..371e09d 100644
--- a/FP/src/ker/states.c
+++ b/FP/src/ker/states.c
@@ -54,7 +54,7 @@ tState createState(int level) {
 #define DefaultFalse(pointer) if (!pointer) return STATES_CONDRESULT_TRUE
 int evaluateCondition(int condition,tKey* key, tKid* kid, tRoom* room) {
 	tsCondition c=statesConditionList[condition];
-#define thisTile (kid->location/STATES_STEPS_PER_TILE+1+12*kid->floor)
+#define thisTile (kid->location/STATES_STEPS_PER_TILE+13+12*kid->floor)
 #define whereInTile ((kid->direction==DIR_LEFT)?(kid->location%STATES_STEPS_PER_TILE):STATES_STEPS_PER_TILE-(kid->location%STATES_STEPS_PER_TILE))
 	switch(c.type) {
 	case esKeyUp: