1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 02:19:09 +00:00

(svn r1700) - Fix: Hacked clients can no longer be used to build vehicles that are not available yet (Hackykid)

This commit is contained in:
bjarni
2005-01-27 21:00:05 +00:00
parent 1ae9e7b448
commit 99338d278d
6 changed files with 33 additions and 0 deletions

View File

@@ -525,6 +525,8 @@ int32 CmdBuildRailVehicle(int x, int y, uint32 flags, uint32 p1, uint32 p2)
Engine *e;
uint tile;
if (!(IsEngineBuildable(p1, VEH_Train))) return CMD_ERROR;
_cmd_build_rail_veh_var1 = 0;
SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES);