summaryrefslogtreecommitdiff
path: root/src/yapf
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-08 16:27:54 +0000
committerrubidium <rubidium@openttd.org>2007-03-08 16:27:54 +0000
commitce919e8c719f0f698ac86dcaa528368316f2e52d (patch)
treee32a4dc6207efbaacc5af4e5c41a353b98b9a897 /src/yapf
parentaca3fb2b6ef69ae571b167d3071edd46d0ed383c (diff)
downloadopenttd-ce919e8c719f0f698ac86dcaa528368316f2e52d.tar.xz
(svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the coding style (and rest of the code).
Diffstat (limited to 'src/yapf')
-rw-r--r--src/yapf/follow_track.hpp2
-rw-r--r--src/yapf/yapf_costrail.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/yapf/follow_track.hpp b/src/yapf/follow_track.hpp
index 4e0a29a87..0e522a00f 100644
--- a/src/yapf/follow_track.hpp
+++ b/src/yapf/follow_track.hpp
@@ -22,7 +22,7 @@ struct CFollowTrackT : public FollowTrack_t
FORCEINLINE void Init(const Vehicle* v, CPerformanceTimer* pPerf)
{
- assert(!IsRailTT() || (v != NULL && v->type == VEH_Train));
+ assert(!IsRailTT() || (v != NULL && v->type == VEH_TRAIN));
m_veh = v;
m_pPerf = pPerf;
// don't worry, all is inlined so compiler should remove unnecessary initializations
diff --git a/src/yapf/yapf_costrail.hpp b/src/yapf/yapf_costrail.hpp
index 9a37b28e5..8efda0c27 100644
--- a/src/yapf/yapf_costrail.hpp
+++ b/src/yapf/yapf_costrail.hpp
@@ -154,7 +154,7 @@ public:
int cost = 0;
const Vehicle* v = Yapf().GetVehicle();
assert(v != NULL);
- assert(v->type == VEH_Train);
+ assert(v->type == VEH_TRAIN);
assert(v->u.rail.cached_total_length != 0);
int needed_platform_length = (v->u.rail.cached_total_length + TILE_SIZE - 1) / TILE_SIZE;
if (platform_length > needed_platform_length) {