Debugging.

This commit is contained in:
Steve 2016-05-18 09:51:16 +01:00
parent 5960e881ea
commit 2c64f5f8c0
2 changed files with 6 additions and 0 deletions

View File

@ -625,6 +625,11 @@ static void drawSuspicionLevel(void)
} }
SDL_RenderFillRect(app.renderer, &r); SDL_RenderFillRect(app.renderer, &r);
if (dev.debug)
{
drawText(r.x + r.w + 7, SCREEN_HEIGHT - 57, 12, TA_LEFT, colors.white, "%d", (battle.suspicionLevel / 10));
}
} }
void resetHud(void) void resetHud(void)

View File

@ -39,5 +39,6 @@ extern int jumpgateEnabled(void);
extern App app; extern App app;
extern Battle battle; extern Battle battle;
extern Colors colors; extern Colors colors;
extern Dev dev;
extern Entity *player; extern Entity *player;
extern Game game; extern Game game;