author | glx |
Fri, 29 Jun 2007 00:26:10 +0000 | |
branch | 0.5 |
changeset 5522 | faeba89423b5 |
parent 5521 | 3fe5c80f0778 |
child 5523 | 830e723086fa |
train_cmd.c | file | annotate | diff | comparison | revisions |
--- a/train_cmd.c Thu Jun 28 15:58:55 2007 +0000 +++ b/train_cmd.c Fri Jun 29 00:26:10 2007 +0000 @@ -2749,7 +2749,11 @@ static byte AfterSetTrainPos(Vehicle *v, bool new_tile) { byte old_z = v->z_pos; + + /* need this hint so it returns the right z coordinate on bridges. */ + _get_z_hint = old_z; v->z_pos = GetSlopeZ(v->x_pos, v->y_pos); + _get_z_hint = 0; if (new_tile) { CLRBIT(v->u.rail.flags, VRF_GOINGUP);