(svn r1700) - Fix: Hacked clients can no longer be used to build vehicles that are not available yet (Hackykid)
This commit is contained in:
@@ -115,6 +115,8 @@ int32 CmdBuildRoadVeh(int x, int y, uint32 flags, uint32 p1, uint32 p2)
|
||||
uint tile = TILE_FROM_XY(x,y);
|
||||
Engine *e;
|
||||
|
||||
if (!(IsEngineBuildable(p1, VEH_Road))) return CMD_ERROR;
|
||||
|
||||
SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES);
|
||||
|
||||
cost = EstimateRoadVehCost(p1);
|
||||
|
||||
Reference in New Issue
Block a user