From 7af53d7588a97bc4b02dbfa456a0e2a9ab598864 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Sun, 20 May 2018 12:01:17 +0100 Subject: Codechange: Use const instead of magic number for ship order distance. Allow slightly further distance when following orders. --- src/ship.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ship.h') 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 { void UpdateCache(); }; +static const uint SHIP_MAX_ORDER_DISTANCE = 130; + /** * Iterate over all ships. * @param var The variable used for iteration. -- cgit v1.2.3-70-g09d2