diff options
author | krzys-h <krzys_h@interia.pl> | 2013-04-12 22:52:32 +0200 |
---|---|---|
committer | krzys-h <krzys_h@interia.pl> | 2013-04-12 22:53:03 +0200 |
commit | 7b2e0e6519525f872fb58df7f287eaefd3c15782 (patch) | |
tree | aa91513f2c1a846c663d41b426f0b24c35595818 /src/object/robotmain.cpp | |
parent | f1873a52d5fb6a542b0ebc24e774f5994b11607d (diff) | |
download | colobot-7b2e0e6519525f872fb58df7f287eaefd3c15782.tar.gz colobot-7b2e0e6519525f872fb58df7f287eaefd3c15782.tar.bz2 colobot-7b2e0e6519525f872fb58df7f287eaefd3c15782.zip |
Added cheats "all" & "allbuildings" (#163)
Diffstat (limited to 'src/object/robotmain.cpp')
-rw-r--r-- | src/object/robotmain.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
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)); |