diff options
Diffstat (limited to 'src/game.c')
-rw-r--r-- | src/game.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -56,7 +56,6 @@ void UpdateGame(float deltaTime) { game.enableDebugOverlay = !game.enableDebugOverlay; } #endif - for (int i = 0; i < MAX_ENTITY_COUNT; i++) { Entity* e = &game.entities[i]; @@ -70,12 +69,7 @@ void DrawEntitySprite(const Entity* e, int spriteIndex) { Rectangle srcRect; if (!IsAnimated(drawnSprite)) { - srcRect = (Rectangle) { - .x = 0, - .y = 0, - .width = drawnSprite->texture.width, - .height = drawnSprite->texture.height - }; + srcRect = drawnSprite->srcRect; } else { const Animation* currentAnimation = &drawnSprite->animations[drawnSprite->currentAnimation]; |