diff options
author | frosch <frosch@openttd.org> | 2009-06-01 15:01:54 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-06-01 15:01:54 +0000 |
commit | 0d782b0f96f01e7d9ac02120b8e5ca84fe9bc9f2 (patch) | |
tree | 9247ff8c6b63c62820520758d14a26b3a47f973e /src/autoreplace_cmd.cpp | |
parent | da57fe63f348a1f4628b9f17df171f4c54f0d2e7 (diff) | |
download | openttd-0d782b0f96f01e7d9ac02120b8e5ca84fe9bc9f2.tar.xz |
(svn r16498) -Codechange: Remove hardly used HASBITS.
Diffstat (limited to 'src/autoreplace_cmd.cpp')
-rw-r--r-- | src/autoreplace_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/autoreplace_cmd.cpp b/src/autoreplace_cmd.cpp index fd1228501..948286d69 100644 --- a/src/autoreplace_cmd.cpp +++ b/src/autoreplace_cmd.cpp @@ -613,7 +613,7 @@ CommandCost CmdAutoreplaceVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1 if (!CheckOwnership(v->owner)) return CMD_ERROR; if (!v->IsInDepot()) return CMD_ERROR; - if (HASBITS(v->vehstatus, VS_CRASHED)) return CMD_ERROR; + if (v->vehstatus & VS_CRASHED) return CMD_ERROR; bool free_wagon = false; if (v->type == VEH_TRAIN) { |