Added cheats "all" & "allbuildings" (#163)
parent
f1873a52d5
commit
7b2e0e6519
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue