summaryrefslogtreecommitdiff
path: root/src/hexen/sb_bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hexen/sb_bar.c')
-rw-r--r--src/hexen/sb_bar.c27
1 files changed, 5 insertions, 22 deletions
diff --git a/src/hexen/sb_bar.c b/src/hexen/sb_bar.c
index 6245c357..77f7bfad 100644
--- a/src/hexen/sb_bar.c
+++ b/src/hexen/sb_bar.c
@@ -1999,28 +1999,11 @@ static void CheatWarpFunc(player_t * player, Cheat_t * cheat)
P_SetMessage(player, TXT_CHEATBADINPUT, true);
return;
}
- if (DevMaps)
- { // Search map development directory
- sprintf(auxName, "%sMAP%02d.WAD", DevMapsDir, map);
- fp = fopen(auxName, "rb");
- if (fp)
- {
- fclose(fp);
- }
- else
- { // Can't find
- P_SetMessage(player, TXT_CHEATNOMAP, true);
- return;
- }
- }
- else
- { // Search primary lumps
- sprintf(mapName, "MAP%02d", map);
- if (W_CheckNumForName(mapName) == -1)
- { // Can't find
- P_SetMessage(player, TXT_CHEATNOMAP, true);
- return;
- }
+ sprintf(mapName, "MAP%02d", map);
+ if (W_CheckNumForName(mapName) == -1)
+ { // Can't find
+ P_SetMessage(player, TXT_CHEATNOMAP, true);
+ return;
}
P_SetMessage(player, TXT_CHEATWARP, true);
G_TeleportNewMap(map, 0);