branch | 0.4 |
changeset 10012 | dddbb8033ba3 |
parent 9989 | 56cc28c68fb6 |
child 10013 | b6dc91f0cd71 |
--- a/train_cmd.c Tue May 16 21:38:41 2006 +0000 +++ b/train_cmd.c Tue May 16 22:11:15 2006 +0000 @@ -2580,9 +2580,9 @@ uint tileh = GetTileSlope(tile, &height); // correct Z position of a train going under a bridge on slopes - if (CorrectZ(tileh)) height += 8; - - if (v->z_pos != height) return true; // train is going over bridge + if (tileh != 0) height += TILE_HEIGHT; + + if (v->z_pos > height) return true; // train is going over bridge } break;