summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2854224)
raw | patch | inline | side by side (parent: 2854224)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Sun, 24 Dec 2017 11:16:16 +0000 (13:16 +0200) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Sun, 24 Dec 2017 11:18:38 +0000 (13:18 +0200) |
src/game/g_game.pas | patch | blob | history | |
src/game/g_options.pas | patch | blob | history |
diff --git a/src/game/g_game.pas b/src/game/g_game.pas
index 569d02ef2743535caf1f2eff25d495c8a4533577..78c8dba234975e1ead9c75585d60eedb1171eced 100644 (file)
--- a/src/game/g_game.pas
+++ b/src/game/g_game.pas
procedure g_Game_StartSingle(Map: String; TwoPlayers: Boolean; nPlayers: Byte);
var
i, nPl: Integer;
+ tmps: AnsiString;
begin
g_Game_Free();
// Çàãðóçêà è çàïóñê êàðòû:
if not g_Game_StartMap(MAP, True) then
begin
- g_FatalError(Format(_lc[I_GAME_ERROR_MAP_LOAD], [gGameSettings.WAD + ':\' + MAP]));
+ if (Pos(':\', Map) > 0) or (Pos(':/', Map) > 0) then tmps := Map else tmps := gGameSettings.WAD + ':\' + MAP;
+ g_FatalError(Format(_lc[I_GAME_ERROR_MAP_LOAD], [tmps]));
Exit;
end;
diff --git a/src/game/g_options.pas b/src/game/g_options.pas
index 18debdd9a80fc0ad0f58b628d92b5cd052dd6289..a3d7017a7785816f65043f1fb1fef382d37c4d91 100644 (file)
--- a/src/game/g_options.pas
+++ b/src/game/g_options.pas
gSFSFastMode := config.ReadBool('Game', 'SFSFastMode', False);
wadoptFast := gSFSFastMode;
e_FastScreenshots := config.ReadBool('Game', 'FastScreenshots', True);
- gDefaultMegawadStart := config.ReadStr('Game', 'DefaultMegawadStart', 'megawads/DOOM2D.WAD:\MAP01');
+ gDefaultMegawadStart := config.ReadStr('Game', 'DefaultMegawadStart', DF_Default_Megawad_Start);
gBerserkAutoswitch := config.ReadBool('Game', 'BerserkAutoswitching', True);
// Ãåéìïëåé â ñâîåé èãðå