Mercurial > hg > openttd
diff src/vehicle_gui.cpp @ 9184:a7020e34c67b draft
(svn r13047) -Codechange: remove vp_d
author | glx <glx@openttd.org> |
---|---|
date | Sun, 11 May 2008 15:08:44 +0000 (2008-05-11) |
parents | 5b8c9fe2e0f4 |
children | 375bae14ff71 |
line wrap: on
line diff
--- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -738,7 +738,7 @@ if (w != NULL) { w->window_number = to_index; - WP(w, vp_d).follow_vehicle = to_index; + w->viewport->follow_vehicle = to_index; w->SetDirty(); w = FindWindowById(WC_VEHICLE_ORDERS, from_index); @@ -2091,7 +2091,7 @@ const Window *mainwindow = FindWindowById(WC_MAIN_WINDOW, 0); /* code to allow the main window to 'follow' the vehicle if the ctrl key is pressed */ if (_ctrl_pressed && mainwindow->viewport->zoom == ZOOM_LVL_NORMAL) { - WP(mainwindow, vp_d).follow_vehicle = v->index; + mainwindow->viewport->follow_vehicle = v->index; } else { ScrollMainWindowTo(v->x_pos, v->y_pos); }