index 980cef8a8b8ea9c406fa1ac22a3c77a1eb762b90..aaf01b5efd86bcac97a56a56f64787127644bc6d 100644 (file)
--- a/src/game/g_saveload.pas
+++ b/src/game/g_saveload.pas
+(* Copyright (C) DooM 2D:Forever Developers
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *)
+{$INCLUDE ../shared/a_modes.inc}
unit g_saveload;
interface
const
SAVE_SIGNATURE = $56534644; // 'DFSV'
- SAVE_VERSION = $02;
+ SAVE_VERSION = $03;
END_MARKER_STRING = 'END';
PLAYER_VIEW_SIGNATURE = $57564C50; // 'PLVW'
OBJ_SIGNATURE = $4A424F5F; // '_OBJ'
str := gGameSettings.WAD;
bMem.WriteString(str, 128);
// Èìÿ êàðòû:
- g_ProcessResourceStr(gMapInfo.Map, nil, nil, @str);
+ str := g_ExtractFileName(gMapInfo.Map);
bMem.WriteString(str, 32);
// Êîëè÷åñòâî èãðîêîâ:
nPlayers := g_Player_GetCount();
///// /////
// Èùåì òðèããåðû ñ óñëîâèåì ñìåðòè ìîíñòðîâ:
- if (gMonsters <> nil) and (gTriggers <> nil) then
+ if {(gMonsters <> nil) and} (gTriggers <> nil) then
g_Map_ReAdd_DieTriggers();
// Çàêðûâàåì ôàéë çàãðóçêè: