mirror of https://github.com/OpenTTD/OpenTTD
(svn r18841) -Fix (r16869): Default-waypoint was drawn incorrectly for monorail and maglev in the waypoint picker.
parent
2e9529aff3
commit
707cf045f8
|
@ -2476,7 +2476,8 @@ void StationPickerDrawSprite(int x, int y, StationType st, RailType railtype, Ro
|
||||||
DrawSprite(SPR_TRAMWAY_TRAM + (t->ground.sprite == SPR_ROAD_PAVED_STRAIGHT_X ? 1 : 0), PAL_NONE, x, y);
|
DrawSprite(SPR_TRAMWAY_TRAM + (t->ground.sprite == SPR_ROAD_PAVED_STRAIGHT_X ? 1 : 0), PAL_NONE, x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
DrawCommonTileSeqInGUI(x, y, t, total_offset, 0, pal);
|
/* Default waypoint has no railtype specific sprites */
|
||||||
|
DrawCommonTileSeqInGUI(x, y, t, st == STATION_WAYPOINT ? 0 : total_offset, 0, pal);
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint GetSlopeZ_Station(TileIndex tile, uint x, uint y)
|
static uint GetSlopeZ_Station(TileIndex tile, uint x, uint y)
|
||||||
|
|
|
@ -2946,7 +2946,7 @@ int Train::UpdateSpeed()
|
||||||
this->max_speed = this->GetCurrentMaxSpeed();
|
this->max_speed = this->GetCurrentMaxSpeed();
|
||||||
accel = this->GetAcceleration();
|
accel = this->GetAcceleration();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint spd = this->subspeed + accel;
|
uint spd = this->subspeed + accel;
|
||||||
this->subspeed = (byte)spd;
|
this->subspeed = (byte)spd;
|
||||||
|
|
Loading…
Reference in New Issue