X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_saveload.pas;h=c77147f87537902a514173bbfe081821576d6a96;hb=5472594f32e33da0c66606ec9eebc8f798ef6b54;hp=3a1cecdc6e0782df8ef69912b81b17284c78ba18;hpb=ac201b02f10ef558087d50f6b03b4519ab567558;p=d2df-sdl.git diff --git a/src/game/g_saveload.pas b/src/game/g_saveload.pas index 3a1cecd..c77147f 100644 --- a/src/game/g_saveload.pas +++ b/src/game/g_saveload.pas @@ -1,3 +1,18 @@ +(* 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 . + *) {$MODE DELPHI} unit g_saveload; @@ -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();