Added cheats "all" & "allbuildings" (#163)

dev-ui
krzys-h 2013-04-12 22:52:32 +02:00
parent f1873a52d5
commit 7b2e0e6519
1 changed files with 22 additions and 0 deletions

View File

@ -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));