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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user