]> 4ch.mooo.com Git - 16.git/commitdiff
====animation mostly converted==== set_anim_by_id(player[pn].ent->spri, player[pn...
authorsparky4 <sparky4@cock.li>
Mon, 23 Jan 2017 23:29:37 +0000 (17:29 -0600)
committersparky4 <sparky4@cock.li>
Mon, 23 Jan 2017 23:29:37 +0000 (17:29 -0600)
src/lib/scroll16.c
src/lib/scroll16.h

index 70ee5bbde3361aafbd7d2e4ac0dd2043f634c4fa..72bce275dd414cc3493fd28fb70f36dc1466e1e6 100755 (executable)
@@ -1288,8 +1288,8 @@ void near ZC_animatePlayer(map_view_t *pip, player_t *player, word pn, sword scr
                break;\r
        }\r
        player[pn].enti.dire++;\r
-\r
        player[pn].ent->spri->delay=1;\r
+       //TODO this needs to work!\r
        //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; }\r
 \r
        //setting xy position\r
index 6b03e96fd95a2d61cde54ef86d585d195334f014..c2bacfbdc00588247503b54787ee85b42175af84 100755 (executable)
@@ -115,6 +115,7 @@ typedef struct {
 \\r
        printf("gvar.video.p=%u ", gvar.video.p); printf("gvar.video.r=%u ", gvar.video.r);\\r
        printf("pageflipflop=%u\n", pageflipflop);\\r
+       print_anim_ids(player[0].ent->spri);\\r
        printf("\n");\r
 \r
 #define SHOWMVFUN ZC_ShowMV(&mv, 0, 0);\r