forked from mirror/OpenTTD
(svn r11643) -Codechange: conform with the coding style for the WP macro uses.
This commit is contained in:
@@ -1680,7 +1680,7 @@ void UpdateViewportPosition(Window *w)
|
||||
const ViewPort *vp = w->viewport;
|
||||
|
||||
if (WP(w, vp_d).follow_vehicle != INVALID_VEHICLE) {
|
||||
const Vehicle* veh = GetVehicle(WP(w,vp_d).follow_vehicle);
|
||||
const Vehicle* veh = GetVehicle(WP(w, vp_d).follow_vehicle);
|
||||
Point pt = MapXYZToViewport(vp, veh->x_pos, veh->y_pos, veh->z_pos);
|
||||
|
||||
SetViewportPosition(w, pt.x, pt.y);
|
||||
|
Reference in New Issue
Block a user