From 078bccbe09b8645e80d34d7e4db6a5d8dcabfa3f Mon Sep 17 00:00:00 2001 From: Daveo Date: Sat, 14 Jul 2001 14:17:34 +0000 Subject: [PATCH] --- source/level/layercollision.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/level/layercollision.h b/source/level/layercollision.h index ea7b82940..8cae844cd 100644 --- a/source/level/layercollision.h +++ b/source/level/layercollision.h @@ -51,7 +51,8 @@ inline int getCollisionBlock(int _x,int _y) inline u8 Get(int X,int Y) { - return(getCollisionBlock(X,Y) & COLLISION_TILE_MASK); + int Ofs=(X)+GetYPos(Y); + return(Map[Ofs] & COLLISION_TILE_MASK); // return(Map[X+(Y*MapWidth)]&COLLISION_TILE_MASK); }