Misc. code tweaks.

This commit is contained in:
Steve 2015-11-15 11:32:00 +00:00
parent af85d1ca5e
commit 3d90352fbc
3 changed files with 4 additions and 3 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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;
}