summaryrefslogtreecommitdiff
path: root/src/depot_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-10-30 17:51:07 +0000
committeralberth <alberth@openttd.org>2010-10-30 17:51:07 +0000
commit7e48d85104549cbb3604aa7eb262b922dbc3f640 (patch)
tree0afba23f2fce7664320853c8deaaf293b8363e16 /src/depot_gui.cpp
parentca8d55ebcd368998aac4a46f8697a5c4585df66d (diff)
downloadopenttd-7e48d85104549cbb3604aa7eb262b922dbc3f640.tar.xz
(svn r21060) -Doc: Improved wording of comments (mostly by __ln__)
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r--src/depot_gui.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp
index 6f9a04bd7..05ef295e6 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -356,7 +356,7 @@ struct DepotWindow : Window {
maxval = min(this->vehicle_list.Length() + this->wagon_list.Length(), (this->vscroll->GetPosition() * boxes_in_each_row) + (rows_in_display * boxes_in_each_row));
- /* draw the train wagons, that do not have an engine in front */
+ /* Draw the train wagons without an engine in front. */
for (; num < maxval; num++, y += this->resize.step_height) {
const Vehicle *v = this->wagon_list[num - this->vehicle_list.Length()];
this->DrawVehicleInDepot(v, r.left, r.right, y);
@@ -537,9 +537,11 @@ struct DepotWindow : Window {
}
}
- /* Function to set up vehicle specific widgets (mainly sprites and strings).
- * Only use this if it's the same widget, that's used for more than one vehicle type and it needs different text/sprites
- * Vehicle specific text/sprites, that's in a widget, that's only shown for one vehicle type (like sell whole train) is set in the nested widget array
+ /**
+ * Function to set up vehicle specific widgets (mainly sprites and strings).
+ * Only use this function to if the widget is used for several vehicle types and each has
+ * different text/sprites. If the widget is only used for a single vehicle type, or the same
+ * text/sprites are used every time, use the nested widget array to initialize the widget.
*/
void SetupWidgetData(VehicleType type)
{