(svn r1728) - Fix: now a player can only build a road vehicle in depots he owns (hacked client protection)

This commit is contained in:
bjarni
2005-01-30 13:42:11 +00:00
parent 5987455d35
commit e8f4b7cf19
2 changed files with 8 additions and 4 deletions

View File

@@ -118,6 +118,10 @@ int32 CmdBuildRoadVeh(int x, int y, uint32 flags, uint32 p1, uint32 p2)
if (!IsEngineBuildable(p1, VEH_Road)) return CMD_ERROR;
if (!IsRoadDepotTile((TileIndex)tile)) return CMD_ERROR;
if (_map_owner[tile] != _current_player) return CMD_ERROR;
SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES);
cost = EstimateRoadVehCost(p1);