summaryrefslogtreecommitdiff
path: root/intro_gui.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-05-12 23:46:01 +0000
committerDarkvater <darkvater@openttd.org>2005-05-12 23:46:01 +0000
commit033995ec6ecd443404fa1a236c6763ddc9cce321 (patch)
treedde69a1afcdeffecc49a408ef9164ad83781a82f /intro_gui.c
parent56e7e4cf25929feefc4586dc3ffe1f4471bbdef1 (diff)
downloadopenttd-033995ec6ecd443404fa1a236c6763ddc9cce321.tar.xz
(svn r2300) - CodeChange: check the last number of commands, now only the refit ones remain, and some server-only commands.
- CodeChange: remove cmd-misuses CmdStartScenario() and CmdDestroyCompanyHQ() - Fix (invisible): when parameter checking CmdRestoreOrderIndex() the vehicle did not have its orders yet, so it would fail. So move doing this until AFTER the orders have been added back in RestoreVehicleOrders()
Diffstat (limited to 'intro_gui.c')
-rw-r--r--intro_gui.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/intro_gui.c b/intro_gui.c
index 07d26fcaa..1725d400d 100644
--- a/intro_gui.c
+++ b/intro_gui.c
@@ -137,22 +137,14 @@ void GenRandomNewGame(uint32 rnd1, uint32 rnd2)
SwitchMode(SM_NEWGAME);
}
-int32 CmdStartScenario(int x, int y, uint32 flags, uint32 p1, uint32 p2)
+void StartScenarioEditor(uint32 rnd1, uint32 rnd2)
{
- if (!(flags & DC_EXEC))
- return 0;
-
- // this forces stuff into test mode.
- _docommand_recursive = 0;
-
- _random_seeds[0][0] = p1;
- _random_seeds[0][1] = p2;
+ _random_seeds[0][0] = rnd1;
+ _random_seeds[0][1] = rnd2;
SwitchMode(SM_START_SCENARIO);
- return 0;
}
-
static const Widget _ask_abandon_game_widgets[] = {
{ WWT_TEXTBTN, RESIZE_NONE, 4, 0, 10, 0, 13, STR_00C5, STR_NULL},
{ WWT_CAPTION, RESIZE_NONE, 4, 11, 179, 0, 13, STR_00C7_QUIT, STR_NULL},