]> 4ch.mooo.com Git - 16.git/blobdiff - src/zcroll.c
oddly enough defining __NEWMAPTILEDATAVARS__ in 16_tdef.h will cause a limbo to appea...
[16.git] / src / zcroll.c
index ed2341bb37e629d758bcafe5ab8e1227c3009c97..16213d6b2b72eedf737c74572dca5e48425dcf3d 100755 (executable)
@@ -170,7 +170,7 @@ void main(int argc, char *argv[])
 \r
                //the scripting stuff....\r
                //if(((player[0].enti.triggerx == TRIGGX && player[0].enti.triggery == TRIGGY) && IN_KeyDown(0x1C))||(player[0].enti.tx == 5 && player[0].enti.ty == 5))\r
-               if(((mv[0].map->data[(player[0].enti.triggerx-1)+(map.width*(player[0].enti.triggery-1))] == 0) && IN_KeyDown(0x1C))||(player[0].enti.tx == 5 && player[0].enti.ty == 5))\r
+               if(((mv[0].map->MAPDATAPTR[(player[0].enti.triggerx-1)+(map.width*(player[0].enti.triggery-1))] == 0) && IN_KeyDown(0x1C))||(player[0].enti.tx == 5 && player[0].enti.ty == 5))\r
                {\r
                        short i;\r
                        for(i=800; i>=400; i--)\r