From 57a92359972b789c8de5794619e62f339fa10707 Mon Sep 17 00:00:00 2001 From: Choupom Date: Sat, 30 Oct 2010 14:06:28 +0200 Subject: reload the map on save if you are authed --- src/game/editor/ed_io.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/game/editor/ed_io.cpp b/src/game/editor/ed_io.cpp index 6684a4a9..c0df17c4 100644 --- a/src/game/editor/ed_io.cpp +++ b/src/game/editor/ed_io.cpp @@ -1,3 +1,4 @@ +#include #include #include #include @@ -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; } -- cgit 1.4.1