X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fscroll16.h;h=3c7bc5597e261a20cd4a955f4c71e86792d5c449;hb=402e3d98a783aa08ecbd6f5ff92cdab3c7be7784;hp=0cd71b63f42e92eaba99d57de47e2a6080fe48c8;hpb=2fb58644b5c539decd246968bc9cc99b94069364;p=16.git diff --git a/src/lib/scroll16.h b/src/lib/scroll16.h index 0cd71b63..3c7bc559 100755 --- a/src/lib/scroll16.h +++ b/src/lib/scroll16.h @@ -42,8 +42,7 @@ #define SPRITE //#define TILERENDER -//0000 -#define SHOWFPS +//0000#define SHOWFPS //#define OLDWALKSHOWPAGESTUFF @@ -86,7 +85,7 @@ printf("size of mmblocktype: %u ", sizeof(mmblocktype));\ printf("\n\n");\ printf("player vars:\n");\ - printf(" xy: %dx%d", gvar.player[0].enti.x, gvar.player[0].enti.y); printf(" txy: %dx%d", gvar.player[0].enti.tx, gvar.player[0].enti.ty); printf(" triggxy: %dx%d", gvar.player[0].enti.triggerx, gvar.player[0].enti.triggery); printf(" value: %d\n", gvar.mv[1].map->layerdata[0].data[(gvar.player[0].enti.triggerx-1)+(map.width*(gvar.player[0].enti.triggery-1))]);\ + printf(" xy: %dx%d", gvar.player[0].enti.x, gvar.player[0].enti.y); printf(" txy: %dx%d", gvar.player[0].enti.tx, gvar.player[0].enti.ty); printf(" triggxy: %dx%d", gvar.player[0].enti.triggerx, gvar.player[0].enti.triggery); printf(" value: %d\n", gvar.mv[1].map->layerdata[0].data[(gvar.player[0].enti.triggerx-1)+(gvar.map.width*(gvar.player[0].enti.triggery-1))]);\ printf(" hp: %d", (gvar.player[0].enti.hp)); printf(" q: %u", gvar.player[0].enti.q); printf(" info.dir: %u", gvar.player[0].info.dir); printf(" d: %u", gvar.player[0].enti.d); printf(" dire: %u", gvar.player[0].enti.dire);\ printf(" pdir: %u\n", gvar.player[0].pdir); printf(" delay=%u", gvar.player[0].enti.spri.delay);\ printf("\n\n");\ @@ -133,7 +132,7 @@ void mapDrawWCol(map_view_t *mv, int tx, int ty, word x); inline void near ScrollRight(map_view_t *mv, player_t *pl, word id, word plid) { /* increment the pixel position and update the page */ - mv[id].page->dx += pl[plid].enti.speed; + mv[id].page->dx += pl[plid].enti.spt; /* check to see if this changes the tile */ if(mv[id].page->dx >= mv[id].dxThresh ) @@ -150,7 +149,7 @@ inline void near ScrollRight(map_view_t *mv, player_t *pl, word id, word plid) inline void near ScrollLeft(map_view_t *mv, player_t *pl, word id, word plid) { /* decrement the pixel position and update the page */ - mv[id].page->dx -= pl[plid].enti.speed; + mv[id].page->dx -= pl[plid].enti.spt; /* check to see if this changes the tile */ if(mv[id].page->dx == 0) @@ -167,7 +166,7 @@ inline void near ScrollLeft(map_view_t *mv, player_t *pl, word id, word plid) inline void near ScrollUp(map_view_t *mv, player_t *pl, word id, word plid) { /* decrement the pixel position and update the page */ - mv[id].page->dy -= pl[plid].enti.speed; + mv[id].page->dy -= pl[plid].enti.spt; /* check to see if this changes the tile */ if(mv[id].page->dy == 0 ) @@ -184,7 +183,7 @@ inline void near ScrollUp(map_view_t *mv, player_t *pl, word id, word plid) inline void near ScrollDown(map_view_t *mv, player_t *pl, word id, word plid) { /* increment the pixel position and update the page */ - mv[id].page->dy += pl[plid].enti.speed; + mv[id].page->dy += pl[plid].enti.spt; /* check to see if this changes the tile */ if(mv[id].page->dy >= mv[id].dyThresh )