/*
-Copyright (C) 2004 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
graphics.blit(panel, (640 - panel->w) / 2, (480 - panel->h) / 2, graphics.background, false);
- audio.loadSound(0, "sound/pop1.wav");
- audio.loadSound(1, "sound/cheer.wav");
+ audio.loadSound(0, "sound/pop1");
+ audio.loadSound(1, "sound/cheer");
SDL_FillRect(graphics.screen, NULL, graphics.black);
graphics.updateScreen();
Objective *objective = (Objective*)map.objectiveList.getHead();
Entity *mia = (Entity*)map.miaList.getHead();
Sprite *teleportStar = graphics.getSprite("TeleportStar", true);
- char message[100];
+ char message[256];
int col1 = 360;
int col2 = 380;
int count = 0;
}
}
+ static Graphics::SurfaceCache cache;
snprintf(message, sizeof message, "%s - %.2d:%.2d:%.2d", _("Mission Time"), game.currentMissionHours, game.currentMissionMinutes, game.currentMissionSeconds);
- graphics.drawString(message, 320, 420, true, graphics.screen);
+ graphics.drawString(message, 320, 420, true, graphics.screen, cache);
engine.delay(frameLimit);
frameLimit = SDL_GetTicks() + 16;