/*
-Copyright (C) 2004 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
+Copyright (C) 2011-2015 Perpendicular Dimensions
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
{
graphics.blit(graphics.tile[brick], r.x, r.y, graphics.screen, false);
- #if !USEPAK
+ #if DEBUG
if ((brick >= MAP_NORESET) && (brick < MAP_DECORATION))
{
graphics.drawRect(r.x, r.y, 32, 4, graphics.yellow, graphics.screen);
SDL_Surface *panel = graphics.createSurface(320, 240);
SDL_Surface *background = graphics.loadImage("gfx/main/mapBackground.png");
- SDL_SetAlpha(background, SDL_SRCALPHA|SDL_RLEACCEL, 130);
+ SDL_SetAlpha(background, 130);
graphics.blit(background, 0, 0, panel, false);
graphics.drawString(_("Enemies"), 430, 410, TXT_LEFT, graphics.screen);
graphics.setFontSize(1);
- sprintf(string, "%s - %.2d:%.2d:%.2d", _("Mission Time"), game.currentMissionHours, game.currentMissionMinutes, game.currentMissionSeconds);
+ snprintf(string, sizeof string, "%s - %.2d:%.2d:%.2d", _("Mission Time"), game.currentMissionHours, game.currentMissionMinutes, game.currentMissionSeconds);
graphics.drawString(string, 320, 60, TXT_CENTERED, graphics.screen);
graphics.drawString(_("Press Button to Continue..."), 320, 450, TXT_CENTERED, graphics.screen);
engine.flushInput();
engine.clearInput();
+ doMusicInfo(-1);
+
while (true)
{
engine.getInput();
graphics.drawRect(160, 120, 320, 240, graphics.black, graphics.white, graphics.screen);
graphics.blit(panel, 160, 120, graphics.screen, false);
- if ((config.isControl(CONTROL::MAP)) || (config.isControl(CONTROL::PAUSE)) || (engine.keyState[SDLK_ESCAPE]))
+ if ((config.isControl(CONTROL::MAP)) || (config.isControl(CONTROL::PAUSE)) || (engine.keyState[SDL_SCANCODE_ESCAPE]))
{
break;
}
while (true)
{
- *line++;
+ line++;
if (*line == ' ')
break;