diff options
author | rubidium <rubidium@openttd.org> | 2011-02-02 22:06:14 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-02-02 22:06:14 +0000 |
commit | bbe94dc4971cdf3db042173f67c9815dec2600a9 (patch) | |
tree | a776e16ee2f05ae88d9ae6aec1f5e7ac3d8ade79 /src/roadveh.h | |
parent | a42c0ea88b7024172d9cf326dabdbc407acee07c (diff) | |
download | openttd-bbe94dc4971cdf3db042173f67c9815dec2600a9.tar.xz |
(svn r21945) -Codechange: simplify setting the overtaking counter and remove the magic from its numbers
Diffstat (limited to 'src/roadveh.h')
-rw-r--r-- | src/roadveh.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/roadveh.h b/src/roadveh.h index bc9453adc..58b7d0750 100644 --- a/src/roadveh.h +++ b/src/roadveh.h @@ -76,6 +76,9 @@ static const uint RVC_TURN_AROUND_START_FRAME_SHORT_TRAM = 16; static const uint RVC_DRIVE_THROUGH_STOP_FRAME = 11; static const uint RVC_DEPOT_STOP_FRAME = 11; +/** The number of ticks a vehicle has for overtaking. */ +static const byte RV_OVERTAKE_TIMEOUT = 35; + void RoadVehUpdateCache(RoadVehicle *v); /** |