Add simple animation scheduling infrastructure

This commit is contained in:
2016-07-17 20:24:51 +10:00
parent 88108bce19
commit 2745a8e25a
3 changed files with 36 additions and 22 deletions
+1 -1
View File
@@ -227,7 +227,7 @@ void renderer_entity(Renderer *renderer, v4 cameraBounds, Entity *entity,
if ((leftAlignedP.x < cameraBounds.z && rightAlignedP.x >= cameraBounds.x) &&
(leftAlignedP.y < cameraBounds.y && rightAlignedP.y >= cameraBounds.w))
{
EntityAnim *anim = &entity->anim[entity->currAnimIndex];
EntityAnim *anim = &entity->anim[entity->currAnimId];
v4 animTexRect = anim->rect[anim->currRectIndex];
if (entity->direction == direction_east)