forked from mirror/OpenTTD
(svn r15725) -Fix: centering on a vehicle didn't respect its z coordinate
This commit is contained in:
@@ -267,8 +267,8 @@ struct NewsWindow : Window {
|
||||
|
||||
case 0:
|
||||
if (this->ni->flags & NF_VEHICLE) {
|
||||
Vehicle *v = GetVehicle(this->ni->data_a);
|
||||
ScrollMainWindowTo(v->x_pos, v->y_pos);
|
||||
const Vehicle *v = GetVehicle(this->ni->data_a);
|
||||
ScrollMainWindowTo(v->x_pos, v->y_pos, v->z_pos);
|
||||
} else if (this->ni->flags & NF_TILE) {
|
||||
if (_ctrl_pressed) {
|
||||
ShowExtraViewPortWindow(this->ni->data_a);
|
||||
|
Reference in New Issue
Block a user