mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-07-08 15:31:07 +00:00
P_WriteThings: use map name in file name
This commit is contained in:
parent
481c178a15
commit
8a616fb265
1 changed files with 5 additions and 2 deletions
|
|
@ -872,6 +872,7 @@ static void P_SpawnMapThings(boolean spawnemblems)
|
|||
// Experimental groovy write function!
|
||||
void P_WriteThings(void)
|
||||
{
|
||||
const char * filename;
|
||||
size_t i, length;
|
||||
mapthing_t *mt;
|
||||
UINT8 *savebuffer, *savebuf_p;
|
||||
|
|
@ -900,11 +901,13 @@ void P_WriteThings(void)
|
|||
|
||||
length = savebuf_p - savebuffer;
|
||||
|
||||
FIL_WriteFile(va("newthings%d.lmp", gamemap), savebuffer, length);
|
||||
filename = va("newthings-%s.lmp", G_BuildMapName(gamemap));
|
||||
|
||||
FIL_WriteFile(filename, savebuffer, length);
|
||||
free(savebuffer);
|
||||
savebuf_p = NULL;
|
||||
|
||||
CONS_Printf(M_GetText("newthings%d.lmp saved.\n"), gamemap);
|
||||
CONS_Printf(M_GetText("%s saved.\n"), filename);
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue