1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-20 04:59:11 +00:00

(svn r12331) -Feature: [NewGRF] vehicle variable FE bit 8

This commit is contained in:
glx
2008-03-03 20:56:30 +00:00
parent cf0e6d4cb4
commit b64f637c72
4 changed files with 12 additions and 5 deletions

View File

@@ -1787,7 +1787,10 @@ static void ReverseTrainDirection(Vehicle *v)
}
/* update all images */
for (Vehicle *u = v; u != NULL; u = u->Next()) { u->cur_image = u->GetImage(u->direction); }
for (Vehicle *u = v; u != NULL; u = u->Next()) {
ToggleBit(u->u.rail.flags, VRF_TOGGLE_REVERSE);
u->cur_image = u->GetImage(u->direction);
}
ClrBit(v->u.rail.flags, VRF_REVERSING);