]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/mission.cpp
Don't link pak tool with SDL.
[quix0rs-blobwars.git] / src / mission.cpp
index d562df80fe7a4c953d9ac53f12a407653878d917..8b362a514dab322d48dde08fe7c6b726c22ed6d7 100644 (file)
@@ -1,5 +1,5 @@
 /*
-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
@@ -167,8 +167,8 @@ void showMissionClear()
 
        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();
@@ -179,7 +179,7 @@ void showMissionClear()
        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;
@@ -365,8 +365,9 @@ void showMissionClear()
                        }
                }
 
+               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;