diff options
Diffstat (limited to 'src/fpsgame/server.cpp')
| -rw-r--r-- | src/fpsgame/server.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |
