1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-19 18:32:35 +01:00

(svn r13915) [0.6] -Backport from trunk:

- Update: translations.
- Fix: Custom vehicle names from TTD(Patch) games were lost (r13884)
This commit is contained in:
rubidium
2008-08-01 19:20:16 +00:00
parent 39f8e1085f
commit 9878c58727
19 changed files with 324 additions and 206 deletions

View File

@@ -3107,8 +3107,8 @@ static void *CheckVehicleAtSignal(Vehicle *v, void *data)
{
DiagDirection exitdir = *(DiagDirection *)data;
/* front engine of a train, not inside wormhole or depot */
if (v->type == VEH_TRAIN && IsFrontEngine(v) && (v->u.rail.track & TRACK_BIT_MASK) != 0) {
/* front engine of a train, not inside wormhole or depot, not crashed */
if (v->type == VEH_TRAIN && IsFrontEngine(v) && (v->u.rail.track & TRACK_BIT_MASK) != 0 && !(v->vehstatus & VS_CRASHED)) {
if (v->cur_speed <= 5 && TrainExitDir(v->direction, v->u.rail.track) == exitdir) return v;
}