]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/hub.cpp
Replace music filenames with generic filenames.
[quix0rs-blobwars.git] / src / hub.cpp
index ad7d3829690745f31337da7c9630a53359a11375..e3a1be35db910fc0a27e9489782a94239c0179c2 100644 (file)
@@ -66,8 +66,7 @@ void createStatsPanel(int page)
                                graphics.drawString(string, x2, y, false, image);
                        }
 
-                       snprintf(string, sizeof string, "%s", _("Total Game Time"));
-                       snprintf(string, sizeof string, "%s - %.2d:%.2d:%.2d", string, game.totalHours, game.totalMinutes, game.totalSeconds);
+                       snprintf(string, sizeof string, "%s - %.2d:%.2d:%.2d", _("Total Game Time"), game.totalHours, game.totalMinutes, game.totalSeconds);
                        graphics.drawString(string, 200, y += 110, true, image);
 
                        break;
@@ -439,7 +438,7 @@ int doHub()
        audio.free();
 
        graphics.loadBackground("gfx/main/worldMap.jpg");
-       audio.loadMusic("music/forAFriend.mod");
+       audio.loadMusic("music/hub");
        
        // we might want this now, for medals
        audio.loadSound(SND_ITEM, "sound/item.wav");
@@ -495,7 +494,7 @@ int doHub()
        char name[50], level[50], requiredLevel[50];
        int x, y;
 
-       #if !USEPAK
+       #if DEBUG
        char pos[50];
        #endif
 
@@ -608,14 +607,13 @@ int doHub()
                if (validStage)
                {
                        graphics.drawRect(10, 400, 620, 20, graphics.black, graphics.white, graphics.screen);
-                       snprintf(string, sizeof string, "%s", _("Selected Destination"));
-                       snprintf(string, sizeof string, "%s : %s", string, _(game.stageName));
+                       snprintf(string, sizeof string, "%s : %s", _("Selected Destination"), _(game.stageName));
                        graphics.drawString(string, 320, 409, true, graphics.screen);
                }
                
                graphics.drawRect(10, 430, 620, 40, graphics.black, graphics.white, graphics.screen);
 
-               #if !USEPAK
+               #if DEBUG
                snprintf(pos, sizeof pos, "%.3d:%.3d", engine.getMouseX(), engine.getMouseY());
                graphics.drawString(pos, 320, 15, true, graphics.screen);
                #endif