From f95068d73410aa6d01e8ba91b430ca05d404a57b Mon Sep 17 00:00:00 2001 From: BoredGuy Date: Tue, 26 Aug 2025 19:54:09 +0300 Subject: Added barrel, next up sprite Z-sorting(ugh) --- src/game.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/game.c') 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]; -- cgit v1.2.3