Misc. code tweaks.
This commit is contained in:
parent
af85d1ca5e
commit
3d90352fbc
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue