summaryrefslogtreecommitdiff
path: root/newgrf_engine.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-06-20 13:15:56 +0000
committerpeter1138 <peter1138@openttd.org>2006-06-20 13:15:56 +0000
commit7e7e8a6c6bd5696f66085af8324f79e9456dafb9 (patch)
tree225d273e3ab92a7f17d705149becef8f878bc34e /newgrf_engine.c
parent02e9656ec335359b000971bb97d8bc08676f06fc (diff)
downloadopenttd-7e7e8a6c6bd5696f66085af8324f79e9456dafb9.tar.xz
(svn r5320) - NewGRF: make sets using TTDPatch's train reversing hack/feature happier (and consistent) by returning 0 for the flag it uses.
Diffstat (limited to 'newgrf_engine.c')
-rw-r--r--newgrf_engine.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/newgrf_engine.c b/newgrf_engine.c
index 0c46cd548..1c9128ec1 100644
--- a/newgrf_engine.c
+++ b/newgrf_engine.c
@@ -727,6 +727,7 @@ static uint32 VehicleGetVariable(const ResolverObject *object, byte variable, by
case 0x77: return v->u.rail.cached_power & 0xFF;
case 0x7C: return v->first->index;
case 0x7D: return v->first->index & 0xFF;
+ case 0x7F: return 0; // Used for vehicle reversing hack in TTDP
}
break;