summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dee7d0e)
raw | patch | inline | side by side (parent: dee7d0e)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Mon, 25 Nov 2019 15:24:28 +0000 (18:24 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Mon, 25 Nov 2019 15:24:28 +0000 (18:24 +0300) |
src/game/g_menu.pas | patch | blob | history |
diff --git a/src/game/g_menu.pas b/src/game/g_menu.pas
index cdf0f13604090c4ba58716ec568d6cdbc43c660d..3cfec36d6f79ba50f00c1d6c9748991bf9fe71b7 100644 (file)
--- a/src/game/g_menu.pas
+++ b/src/game/g_menu.pas
procedure ProcSinglePlayer (n: Integer);
var wad, map: AnsiString;
begin
+ assert(n >= 1);
wad := g_ExtractWadName(gDefaultMegawadStart);
map := g_ExtractFilePathName(gDefaultMegawadStart);
if e_FindResource(AllMapDirs, wad) then
begin
wad := ExpandFileName(wad);
- g_Game_StartSingle(wad + ':\' + map, False, n);
- end;
+ g_Game_StartSingle(wad + ':\' + map, n > 1, n)
+ end
end;
procedure ProcSingle1Player;