mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
reload the map on save if you are authed
This commit is contained in:
parent
fd3d01ef14
commit
57a9235997
|
@ -1,3 +1,4 @@
|
|||
#include <engine/client.h>
|
||||
#include <engine/console.h>
|
||||
#include <engine/graphics.h>
|
||||
#include <engine/storage.h>
|
||||
|
@ -359,11 +360,8 @@ int CEditorMap::Save(class IStorage *pStorage, const char *pFileName)
|
|||
m_pEditor->Console()->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "editor", "saving done");
|
||||
|
||||
// send rcon.. if we can
|
||||
/*
|
||||
if(Client()->RconAuthed())
|
||||
{
|
||||
Client()->Rcon("sv_map_reload 1");
|
||||
}*/
|
||||
if(m_pEditor->Client()->RconAuthed())
|
||||
m_pEditor->Client()->Rcon("reload");
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue