(svn r15725) -Fix: centering on a vehicle didn't respect its z coordinate

This commit is contained in:
smatz
2009-03-15 15:25:18 +00:00
parent 4f8eeca437
commit af293142fe
8 changed files with 25 additions and 15 deletions

View File

@@ -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);