reload the map on save if you are authed

This commit is contained in:
Choupom 2010-10-30 14:06:28 +02:00 committed by oy
parent fd3d01ef14
commit 57a9235997

View file

@ -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;
}