summaryrefslogtreecommitdiff
path: root/src/roadveh.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-02-02 22:06:14 +0000
committerrubidium <rubidium@openttd.org>2011-02-02 22:06:14 +0000
commitbbe94dc4971cdf3db042173f67c9815dec2600a9 (patch)
treea776e16ee2f05ae88d9ae6aec1f5e7ac3d8ade79 /src/roadveh.h
parenta42c0ea88b7024172d9cf326dabdbc407acee07c (diff)
downloadopenttd-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.h3
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);
/**