diff options
| author | Choupom <andycootlapin@hotmail.fr> | 2010-10-30 14:06:28 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-11-17 12:30:42 +0100 |
| commit | 57a92359972b789c8de5794619e62f339fa10707 (patch) | |
| tree | a4ea3d0732243b08f093e348b00a3b09f463a425 /src/game/editor/ed_io.cpp | |
| parent | fd3d01ef142cb8f4882c591264fc7b3a4907bd97 (diff) | |
| download | zcatch-57a92359972b789c8de5794619e62f339fa10707.tar.gz zcatch-57a92359972b789c8de5794619e62f339fa10707.zip | |
reload the map on save if you are authed
Diffstat (limited to 'src/game/editor/ed_io.cpp')
| -rw-r--r-- | src/game/editor/ed_io.cpp | 8 |
1 files 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 <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; } |