index 3a1cecdc6e0782df8ef69912b81b17284c78ba18..c77147f87537902a514173bbfe081821576d6a96 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/>.
+ *)
{$MODE DELPHI}
unit g_saveload;
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();