From ea2656c0bd37e08bcb642a995d94ca9b6cca19dc Mon Sep 17 00:00:00 2001 From: Doyle Thai Date: Fri, 8 Jul 2016 21:36:26 +1000 Subject: [PATCH] Fix bug accumulating debug strings without resetting --- src/WorldTraveller.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/WorldTraveller.c b/src/WorldTraveller.c index 7cfb95c..ab24c92 100644 --- a/src/WorldTraveller.c +++ b/src/WorldTraveller.c @@ -415,6 +415,7 @@ void worldTraveller_gameUpdateAndRender(GameState *state, const f32 dt) Font *font = &assetManager->font; if (debugUpdateCounter <= 0) { + numDebugStrings = 0; Entity *const hero = &world->entities[world->heroIndex]; snprintf(debugStrings[0], ARRAY_COUNT(debugStrings[0]), "Hero Pos: %06.2f,%06.2f", hero->pos.x, hero->pos.y);