diff --git a/src/battle/player.h b/src/battle/player.h index dc40794..b4454a3 100644 --- a/src/battle/player.h +++ b/src/battle/player.h @@ -30,7 +30,6 @@ extern void fireMissile(Entity *owner); extern void applyFighterThrust(void); extern void applyFighterBrakes(void); extern int getDistance(int x1, int y1, int x2, int y2); -extern void failIncompleteObjectives(void); extern void addHudMessage(SDL_Color c, char *format, ...); extern int mod(int n, int x); extern void failMission(void); diff --git a/src/draw/draw.c b/src/draw/draw.c index cf48b61..d9276ce 100644 --- a/src/draw/draw.c +++ b/src/draw/draw.c @@ -46,7 +46,9 @@ void prepareScene(void) void presentScene(void) { - /*drawText(SCREEN_WIDTH - 5, 35, 14, TA_RIGHT, colors.white, "FPS: %d", app.fps);*/ + #if DEBUG + drawText(SCREEN_WIDTH / 2, SCREEN_HEIGHT - 25, 14, TA_CENTER, colors.white, "FPS: %d", app.fps); + #endif SDL_SetRenderTarget(app.renderer, NULL); SDL_RenderCopy(app.renderer, app.backBuffer, NULL, NULL); diff --git a/src/system/io.c b/src/system/io.c index f93c7d9..86ad4d4 100644 --- a/src/system/io.c +++ b/src/system/io.c @@ -69,7 +69,7 @@ char *getSaveFilePath(char *filename) sprintf(path, "%s/%s", app.saveDir, filename); - SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_DEBUG, "getSaveFilePath = '%s'", path); + SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, "getSaveFilePath = '%s'", path); return path; }