]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/scroll16.c
====animation mostly converted==== old bug resurfaced as animation is 12341234 instea...
[16.git] / src / lib / scroll16.c
index 72bce275dd414cc3493fd28fb70f36dc1466e1e6..819e5290c3d2a41bdc4a197a3b2d0f27bfffcd3d 100755 (executable)
@@ -1289,8 +1289,9 @@ void near ZC_animatePlayer(map_view_t *pip, player_t *player, word pn, sword scr
        }\r
        player[pn].enti.dire++;\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
+       if(player[pn].enti.q==1)\r
+               set_anim_by_id(player[pn].ent->spri, player[pn].enti.dire);\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
        player[pn].ent->spri->x = x;\r
@@ -1312,7 +1313,7 @@ void near ZC_animatePlayer(map_view_t *pip, player_t *player, word pn, sword scr
                break;\r
        }\r
        pip->video->r=1;\r
-       WALKTYPE_FRAM_PRINT;\r
+       //WALKTYPE_FRAM_PRINT;\r
        //sprintf(global_temp_status_text, " %u", player[pn].enti.dire);\r
        //modexprint(&(pip->video->page[0]), player[pn].enti.x-(8*player[pn].enti.persist_aniframe)+8, player[pn].enti.y-TILEWH-(8*player[pn].enti.persist_aniframe), 1, 20, 1, global_temp_status_text);\r
 }\r