From 21a7f1bced7adf20f62319b3bb78a8653e57732f Mon Sep 17 00:00:00 2001 From: krzys-h Date: Sat, 12 Sep 2015 10:35:31 +0200 Subject: [PATCH] Made 'invui' work in main menu --- data | 2 +- src/level/robotmain.cpp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/data b/data index 27acff48..9a3bba50 160000 --- a/data +++ b/data @@ -1 +1 @@ -Subproject commit 27acff484b0aaf66e0f401ab36dd126270fe4b55 +Subproject commit 9a3bba50a6e2a556e21728da15a3055c65910615 diff --git a/src/level/robotmain.cpp b/src/level/robotmain.cpp index 67660b29..b9cf2fb2 100644 --- a/src/level/robotmain.cpp +++ b/src/level/robotmain.cpp @@ -1238,12 +1238,6 @@ void CRobotMain::ExecuteCmd(char *cmd) return; } - if (strcmp(cmd, "invui") == 0) - { - m_engine->SetRenderInterface(!m_engine->GetRenderInterface()); - return; - } - if (strcmp(cmd, "noclip") == 0) { CObject* object = GetSelect(); @@ -1366,6 +1360,12 @@ void CRobotMain::ExecuteCmd(char *cmd) return; } + if (strcmp(cmd, "invui") == 0) + { + m_engine->SetRenderInterface(!m_engine->GetRenderInterface()); + return; + } + if (strcmp(cmd, "selectinsect") == 0) { m_selectInsect = !m_selectInsect;