// Cheats
memset(lastKeyEvents, ' ', 25);
- #if USEPAK
- cheats = false;
- #else
- cheats = true;
- #endif
cheatHealth = cheatExtras = cheatFuel = cheatLevels = false;
cheatBlood = cheatInvulnerable = cheatReload = cheatSpeed = cheatSkipLevel = false;
/* ############# debug ################## */
-#if USEPAK
- #define debug(x) {}
-#else
+#if DEBUG
#define debug(x) {printf("*** DEBUG: "); printf x;}
+#else
+ #define debug(x) {}
#endif
#ifndef IGNORE_FLAGTOKEN_ERRORS
Uint32 then, frames, frameLimit, millis, frameCounter;
- #if !USEPAK
+ #if DEBUG
Uint32 now;
char fps[10];
strncpy(fps, "fps", sizeof fps);
{
player.health = -99;
- //#if USEPAK
if ((!map.isBossMission) && (replayData.replayMode == REPLAY_MODE::NONE))
{
showMissionInformation();
}
- //#endif
game.levelsStarted++;
}
engine.setInfoMessage("Skipping Mission...", 2, INFO_OBJECTIVE);
}
- #if !USEPAK
+ #if DEBUG
if (engine.keyState[SDLK_F1])
{
autoCompleteAllObjectives(false);
if (game.missionOverReason == MIS_GAMECOMPLETE)
frameLimit = SDL_GetTicks() + 64;
- #if !USEPAK
+ #if DEBUG
graphics.drawString(fps, 600, 30, true, graphics.screen);
if (SDL_GetTicks() > frameCounter + 500)
char name[50], level[50], requiredLevel[50];
int x, y;
- #if !USEPAK
+ #if DEBUG
char pos[50];
#endif
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
graphics.setFontColor(0xff, 0xff, 0xff, 0x00, 0x00, 0x00);
- //#if !USEPAK
+ #if DEBUG
snprintf(string, sizeof string, _("Position = %d:%d"), (int)player.x, (int)player.y);
graphics.drawString(string, 5, 25, false, graphics.screen);
- //#endif
+ #endif
graphics.drawString(_("*** PAUSED ***"), 320, y, TXT_CENTERED, graphics.screen);
if ((absX < 800) && (absY < 600))
{
- #if !USEPAK
+ #if DEBUG
graphics.drawRect(x, y, lineDef->width, lineDef->height, graphics.red, graphics.screen);
#endif
else if (strcmp(argv[i], "-map") == 0) {game.setMapName(argv[++i]); requiredSection = SECTION_GAME;}
else if (strcmp(argv[i], "-listmaps") == 0) listMaps();
- #if !USEPAK
+ #if DEBUG
else if (strcmp(argv[i], "-showsprites") == 0) showSprites = true;
else if (strcmp(argv[i], "-hub") == 0) hub = true;
else if (strcmp(argv[i], "-randomscreens") == 0) graphics.takeRandomScreenShots = true;
{
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);
}
}
- #if !USEPAK
+ #if DEBUG
if (engine.keyState[SDLK_1])
player.currentWeapon = &weapon[WP_PISTOL];
else if (engine.keyState[SDLK_2])