diff options
author | terkhen <terkhen@openttd.org> | 2010-12-14 21:26:03 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-12-14 21:26:03 +0000 |
commit | 79e2b3153d4d89a653a72e07727e58300b435ac4 (patch) | |
tree | 62d1f676a9a63df00b92b64d8e866a98b080dc3b /src/newgrf_engine.cpp | |
parent | 96b98b392ad89e3d1718a7a46a3e41d4eeab61d3 (diff) | |
download | openttd-79e2b3153d4d89a653a72e07727e58300b435ac4.tar.xz |
(svn r21516) -Codechange: Add IsGroundVehicle function to the Vehicle class.
Diffstat (limited to 'src/newgrf_engine.cpp')
-rw-r--r-- | src/newgrf_engine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_engine.cpp b/src/newgrf_engine.cpp index cd6023861..8e276623c 100644 --- a/src/newgrf_engine.cpp +++ b/src/newgrf_engine.cpp @@ -611,7 +611,7 @@ static uint32 VehicleGetVariable(const ResolverObject *object, byte variable, by * B - current wagon to next wagon, 0 if wagon is last * T - previous wagon to next wagon, 0 in an S-bend */ - if (v->type != VEH_TRAIN && v->type != VEH_ROAD) return 0; + if (!v->IsGroundVehicle()) return 0; const Vehicle *u_p = v->Previous(); const Vehicle *u_n = v->Next(); |