1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-20 21:19:10 +00:00

(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()
This commit is contained in:
Darkvater
2005-05-12 23:46:01 +00:00
parent 56e7e4cf25
commit 033995ec6e
17 changed files with 353 additions and 303 deletions

View File

@@ -572,7 +572,7 @@ static void NetworkStartServerWindowWndProc(Window *w, WindowEvent *e)
strcpy(_file_to_saveload.name, name);
snprintf(_network_game_info.map_name, sizeof(_network_game_info.map_name), "Loaded scenario");
DeleteWindow(w);
DoCommandP(0, Random(), InteractiveRandom(), NULL, CMD_START_SCENARIO);
StartScenarioEditor(Random(), InteractiveRandom());
}
}
break;