X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fgame%2Fg_game.pas;h=7c413aabd2ed8166a05bdaeba151d8aa78d8af3d;hb=11f1db221de3d7c80641b87194a920e54850b713;hp=26465349d5047fb6dc9de60e125f7607174d662f;hpb=82e244af6046f36a1d4e7b281f64a8e9cf796119;p=d2df-sdl.git diff --git a/src/game/g_game.pas b/src/game/g_game.pas index 2646534..7c413aa 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -6580,12 +6580,13 @@ begin end else begin // Òàêîé êàðòû íåò, èùåì WAD ôàéë - P[1] := addWadExtension(P[1]); - g_Console_Add(Format(_lc[I_MSG_NO_MAP_FALLBACK], [s, P[1]])); - if FileExists(MapsDir + P[1]) then + pw := findDiskWad(MapsDir + P[1]); + g_Console_Add(Format(_lc[I_MSG_NO_MAP_FALLBACK], [s, 'WAD ' + P[1]])); + if FileExists(pw) then begin // Ïàðàìåòðà êàðòû íåò, ïîýòîìó ñòàâèì ïåðâóþ èç ôàéëà SetLength(P, 3); + P[1] := ExtractRelativePath(MapsDir, pw); P[2] := g_Game_GetFirstMap(MapsDir + P[1]); s := P[1] + ':\' + P[2];