diff options
author | bjarni <bjarni@openttd.org> | 2005-01-27 21:00:05 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2005-01-27 21:00:05 +0000 |
commit | 99338d278da52e2f71fe8c4d3f05449a1ad24144 (patch) | |
tree | 5bdf21fd520f2315aba284830d98f9db10e8e388 /roadveh_cmd.c | |
parent | 1ae9e7b4480865289c2793ac1f9bad53090d5d40 (diff) | |
download | openttd-99338d278da52e2f71fe8c4d3f05449a1ad24144.tar.xz |
(svn r1700) - Fix: Hacked clients can no longer be used to build vehicles that are not available yet (Hackykid)
Diffstat (limited to 'roadveh_cmd.c')
-rw-r--r-- | roadveh_cmd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c index c78aa79d8..f2a5c88c8 100644 --- a/roadveh_cmd.c +++ b/roadveh_cmd.c @@ -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); |