From: sparky4 Date: Mon, 23 Jan 2017 23:29:37 +0000 (-0600) Subject: ====animation mostly converted==== set_anim_by_id(player[pn].ent->spri, player[pn... X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=0221a741fa57dae95c4df3e93be3a8cd10b7e80b;p=16.git ====animation mostly converted==== set_anim_by_id(player[pn].ent->spri, player[pn].enti.dire) is causing stability issues and dose not overwrite the old set up also the code is quite unstable but i may of had fixed it just now.. lets see! --- diff --git a/src/lib/scroll16.c b/src/lib/scroll16.c index 70ee5bbd..72bce275 100755 --- a/src/lib/scroll16.c +++ b/src/lib/scroll16.c @@ -1288,8 +1288,8 @@ void near ZC_animatePlayer(map_view_t *pip, player_t *player, word pn, sword scr break; } player[pn].enti.dire++; - player[pn].ent->spri->delay=1; + //TODO this needs to work! //pip->video->sprifilei = set_anim_by_id(player[pn].ent->spri, player[pn].enti.dire); if(pip->video->sprifilei == -1){ printf("ERROR! %u\n", player[pn].enti.dire); return; } //setting xy position diff --git a/src/lib/scroll16.h b/src/lib/scroll16.h index 6b03e96f..c2bacfbd 100755 --- a/src/lib/scroll16.h +++ b/src/lib/scroll16.h @@ -115,6 +115,7 @@ typedef struct { \ printf("gvar.video.p=%u ", gvar.video.p); printf("gvar.video.r=%u ", gvar.video.r);\ printf("pageflipflop=%u\n", pageflipflop);\ + print_anim_ids(player[0].ent->spri);\ printf("\n"); #define SHOWMVFUN ZC_ShowMV(&mv, 0, 0);