summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6964c75)
raw | patch | inline | side by side (parent: 6964c75)
author | binarymaster <x86corez@gmail.com> | |
Sun, 24 Sep 2017 20:02:01 +0000 (23:02 +0300) | ||
committer | binarymaster <x86corez@gmail.com> | |
Sun, 24 Sep 2017 20:02:01 +0000 (23:02 +0300) |
http://doom2d.org/forum/viewtopic.php?f=36&t=2277
src/game/g_game.pas | patch | blob | history | |
src/game/g_language.pas | patch | blob | history |
diff --git a/src/game/g_game.pas b/src/game/g_game.pas
index 15cea720cf088791e89b011ab29d7d93d0632308..eaccccca74e1523f2ecabebfd34367f9a8f64ef0 100644 (file)
--- a/src/game/g_game.pas
+++ b/src/game/g_game.pas
if P[2] = '' then
g_Console_Add(Format(_lc[I_MSG_NO_MAPS], [P[1]]))
else
- g_Console_Add(Format(_lc[I_MSG_NO_MAP], [UpperCase(P[2])]));
+ g_Console_Add(Format(_lc[I_MSG_NO_MAP_FALLBACK], [UpperCase(P[2]), P[1]]));
end else
g_Console_Add(Format(_lc[I_MSG_NO_WAD], [P[1]]));
end
if P[4] = '' then
g_Console_Add(Format(_lc[I_MSG_NO_MAPS], [P[3]]))
else
- g_Console_Add(Format(_lc[I_MSG_NO_MAP], [UpperCase(P[4])]));
+ g_Console_Add(Format(_lc[I_MSG_NO_MAP_FALLBACK], [UpperCase(P[4]), P[3]]));
end else
g_Console_Add(Format(_lc[I_MSG_NO_WAD], [P[3]]));
end
g_Game_ChangeMap(s);
end else
begin
- g_Console_Add(Format(_lc[I_MSG_NO_MAP], [s]));
// Òàêîé êàðòû íåò, èùåì 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
begin
// Ïàðàìåòðà êàðòû íåò, ïîýòîìó ñòàâèì ïåðâóþ èç ôàéëà
nm := True;
end else
begin
- g_Console_Add(Format(_lc[I_MSG_NO_MAP], [s]));
// Òàêîé êàðòû íåò, èùåì 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
begin
// Ïàðàìåòðà êàðòû íåò, ïîýòîìó ñòàâèì ïåðâóþ èç ôàéëà
index 19ee8af56f56442af13bb75a6a47b35fc23ae868..7617d4c28653ea588f0cc02d3bc2c7019d018b2d 100644 (file)
--- a/src/game/g_language.pas
+++ b/src/game/g_language.pas
I_MSG_NO_WAD,
I_MSG_NO_MAPS,
I_MSG_NO_MAP,
+ I_MSG_NO_MAP_FALLBACK,
I_MSG_NO_MONSTER,
I_MSG_SCORE_LIMIT,
I_MSG_TIME_LIMIT,
'WAD ôàéë "%s" íå ñîäåðæèò êàðò!'),
('MSG NO MAP', 'Map "%s" doesn''t exist!',
'Êàðòà "%s" íå íàéäåíà!'),
+ ('MSG NO MAP FALLBACK', 'Map "%s" doesn''t exist in this WAD, looking for %s.',
+ 'Êàðòà "%s" íå íàéäåíà â ýòîì WAD ôàéëå, èùó %s.'),
('MSG NO MONSTER', 'Wrong monster type: "%s"!',
'"%s" - íåò òàêîãî ìîíñòðà!'),
('MSG SCORE LIMIT', 'Score Limit is %d',