From 7b2e0e6519525f872fb58df7f287eaefd3c15782 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Fri, 12 Apr 2013 22:52:32 +0200 Subject: Added cheats "all" & "allbuildings" (#163) --- src/object/robotmain.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/object') diff --git a/src/object/robotmain.cpp b/src/object/robotmain.cpp index 9f95e10..90d5d03 100644 --- a/src/object/robotmain.cpp +++ b/src/object/robotmain.cpp @@ -1768,6 +1768,23 @@ void CRobotMain::ExecuteCmd(char *cmd) return; } + if (strcmp(cmd, "allbuildings") == 0) + { + g_build = -1; // all buildings are available + + m_eventQueue->AddEvent(Event(EVENT_UPDINTERFACE)); + return; + } + + if (strcmp(cmd, "all") == 0) + { + g_researchDone = -1; // all research are done + g_build = -1; // all buildings are available + + m_eventQueue->AddEvent(Event(EVENT_UPDINTERFACE)); + return; + } + if (strcmp(cmd, "nolimit") == 0) { m_terrain->SetFlyingMaxHeight(280.0f); @@ -2006,6 +2023,11 @@ void CRobotMain::ExecuteCmd(char *cmd) UpdateSpeedLabel(); return; } + if (strcmp(cmd, "crazy") == 0) { + SetSpeed(1000.0f); + UpdateSpeedLabel(); + return; + } if (m_phase == PHASE_SIMUL) m_displayText->DisplayError(ERR_CMD, Math::Vector(0.0f,0.0f,0.0f)); -- cgit v1.2.3-1-g7c22