summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/game.c b/src/game.c
index d6e8ce3..59747c6 100644
--- a/src/game.c
+++ b/src/game.c
@@ -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];