diff options
author | rubidium <rubidium@openttd.org> | 2011-12-16 16:58:55 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-12-16 16:58:55 +0000 |
commit | 4de1f3be885730cfa7dad6c6b3a4608f8808ce37 (patch) | |
tree | 62f55b8ed6b4d1fa65f5a4cb7c868ad97f5ffe62 /src/ship_cmd.cpp | |
parent | b8640b986f2a7188b7a21d4093a211b21a926c3e (diff) | |
download | openttd-4de1f3be885730cfa7dad6c6b3a4608f8808ce37.tar.xz |
(svn r23540) -Codechange: unify and document vehicle widgets
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r-- | src/ship_cmd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp index cda7cd396..00bc770d8 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -161,14 +161,14 @@ static void CheckIfShipNeedsService(Vehicle *v) if (depot == NULL) { if (v->current_order.IsType(OT_GOTO_DEPOT)) { v->current_order.MakeDummy(); - SetWindowWidgetDirty(WC_VEHICLE_VIEW, v->index, VVW_WIDGET_START_STOP_VEH); + SetWindowWidgetDirty(WC_VEHICLE_VIEW, v->index, WID_VV_START_STOP); } return; } v->current_order.MakeGoToDepot(depot->index, ODTFB_SERVICE); v->dest_tile = depot->xy; - SetWindowWidgetDirty(WC_VEHICLE_VIEW, v->index, VVW_WIDGET_START_STOP_VEH); + SetWindowWidgetDirty(WC_VEHICLE_VIEW, v->index, WID_VV_START_STOP); } /** @@ -347,7 +347,7 @@ static bool ShipAccelerate(Vehicle *v) /* updates statusbar only if speed have changed to save CPU time */ if (spd != v->cur_speed) { v->cur_speed = spd; - SetWindowWidgetDirty(WC_VEHICLE_VIEW, v->index, VVW_WIDGET_START_STOP_VEH); + SetWindowWidgetDirty(WC_VEHICLE_VIEW, v->index, WID_VV_START_STOP); } /* Convert direction-indepenent speed into direction-dependent speed. (old movement method) */ @@ -510,7 +510,7 @@ static void ShipController(Ship *v) * always skip ahead. */ if (v->current_order.IsType(OT_LEAVESTATION)) { v->current_order.Free(); - SetWindowWidgetDirty(WC_VEHICLE_VIEW, v->index, VVW_WIDGET_START_STOP_VEH); + SetWindowWidgetDirty(WC_VEHICLE_VIEW, v->index, WID_VV_START_STOP); } else if (v->dest_tile != 0) { /* We have a target, let's see if we reached it... */ if (v->current_order.IsType(OT_GOTO_WAYPOINT) && |