about summary refs log tree commit diff
path: root/src/game/client/gameclient.cpp
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-03-22 00:31:42 +0100
committeroy <Tom_Adams@web.de>2011-03-22 00:31:42 +0100
commiteaef2ce48a36a786dc60248dcc5e746865570b2d (patch)
tree0e82b7f702afbfe6a62172a881709b944afb563d /src/game/client/gameclient.cpp
parent588a411666de052fd237f9aaa857278ade420b51 (diff)
downloadzcatch-eaef2ce48a36a786dc60248dcc5e746865570b2d.tar.gz
zcatch-eaef2ce48a36a786dc60248dcc5e746865570b2d.zip
added notification for unsaved map data and a confirmation for overwriting an existing map in the editor. Closes #115
Diffstat (limited to 'src/game/client/gameclient.cpp')
-rw-r--r--src/game/client/gameclient.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp
index 20fad034..a7e9e66f 100644
--- a/src/game/client/gameclient.cpp
+++ b/src/game/client/gameclient.cpp
@@ -1,5 +1,6 @@
 /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
 /* If you are missing that file, acquire a complete release at teeworlds.com.                */
+#include <engine/editor.h>
 #include <engine/engine.h>
 #include <engine/graphics.h>
 #include <engine/textrender.h>
@@ -113,6 +114,7 @@ void CGameClient::OnConsoleInit()
 	m_pDemoPlayer = Kernel()->RequestInterface<IDemoPlayer>();
 	m_pDemoRecorder = Kernel()->RequestInterface<IDemoRecorder>();
 	m_pServerBrowser = Kernel()->RequestInterface<IServerBrowser>();
+	m_pEditor = Kernel()->RequestInterface<IEditor>();
 	
 	// setup pointers
 	m_pBinds = &::gs_Binds;