diff options
author | Peter Nelson <peter1138@openttd.org> | 2018-05-20 12:01:17 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-01-14 19:57:07 +0000 |
commit | 7af53d7588a97bc4b02dbfa456a0e2a9ab598864 (patch) | |
tree | bd0ee45f0dcdc77ffd2595e70547ea980381447f /src/ship.h | |
parent | b98887c4a014d5bc193b0c1089b3ac0334187775 (diff) | |
download | openttd-7af53d7588a97bc4b02dbfa456a0e2a9ab598864.tar.xz |
Codechange: Use const instead of magic number for ship order distance. Allow slightly further distance when following orders.
Diffstat (limited to 'src/ship.h')
-rw-r--r-- | src/ship.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ship.h b/src/ship.h index 0f396a237..7fea5fc1d 100644 --- a/src/ship.h +++ b/src/ship.h @@ -48,6 +48,8 @@ struct Ship FINAL : public SpecializedVehicle<Ship, VEH_SHIP> { void UpdateCache(); }; +static const uint SHIP_MAX_ORDER_DISTANCE = 130; + /** * Iterate over all ships. * @param var The variable used for iteration. |