From 757096e7df15c14b9b10352fa91663483f9e34f8 Mon Sep 17 00:00:00 2001 From: xolatile Date: Sun, 10 Aug 2025 00:19:46 +0200 Subject: all --- src/fpsgame/server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fpsgame/server.cpp') diff --git a/src/fpsgame/server.cpp b/src/fpsgame/server.cpp index 2856e53..341b050 100644 --- a/src/fpsgame/server.cpp +++ b/src/fpsgame/server.cpp @@ -774,7 +774,7 @@ namespace server { void sendwelcome(clientinfo *ci); void setupdemorecord() { if(!m_mp(gamemode) || m_edit) return; - demotmp = opentempfile("demorecord", "w+b"); + demotmp = opentempfile(); if(!demotmp) return; stream *f = opengzfile(NULL, "wb", demotmp); if(!f) { DELETEP(demotmp); return; } @@ -2155,7 +2155,7 @@ namespace server { clientinfo *ci = getinfo(sender); if(ci->state.state==CS_SPECTATOR && !ci->privilege && !ci->local) return; if(mapdata) DELETEP(mapdata); - mapdata = opentempfile("mapdata", "w+b"); + mapdata = opentempfile(); if(!mapdata) { sendf(sender, 1, "ris", N_SERVMSG, "failed to open temporary file for map"); return; } mapdata->write(data, len); sendservmsgf("[%s sent a map to server, \"/getmap\" to receive it]", colorname(ci)); -- cgit v1.2.3