DEADSOFTWARE

goto cheat fix
[d2df-sdl.git] / src / game / g_main.pas
index 2758377eb4ad627d15e5f646705b5b740724bd1e..12f33c6940fd05a7bff33ced7fb4bc58aff1d8d7 100644 (file)
@@ -374,9 +374,7 @@ begin
   begin
     if g_Map_Exist(MapsDir+gGameSettings.WAD+':\MAP'+s2) then
     begin
-      c := 'MAP00';
-      c[3] := s2[1];
-      c[4] := s2[2];
+      c := 'MAP'+s2;
       g_Game_ExitLevel(c);
     end;
     goto Cheated;