X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_saveload.pas;h=039883d286cc8d5ccd34593ddca464974867f753;hb=7292fe409145dfcbb2776e34bb64d56e32985b9d;hp=3a1cecdc6e0782df8ef69912b81b17284c78ba18;hpb=ac201b02f10ef558087d50f6b03b4519ab567558;p=d2df-sdl.git diff --git a/src/game/g_saveload.pas b/src/game/g_saveload.pas index 3a1cecd..039883d 100644 --- a/src/game/g_saveload.pas +++ b/src/game/g_saveload.pas @@ -1,4 +1,19 @@ -{$MODE DELPHI} +(* 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 . + *) +{$INCLUDE g_amodes.inc} unit g_saveload; interface @@ -22,7 +37,7 @@ uses const SAVE_SIGNATURE = $56534644; // 'DFSV' - SAVE_VERSION = $02; + SAVE_VERSION = $03; END_MARKER_STRING = 'END'; PLAYER_VIEW_SIGNATURE = $57564C50; // 'PLVW' OBJ_SIGNATURE = $4A424F5F; // '_OBJ' @@ -152,7 +167,7 @@ begin 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();