summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2007-12-05 17:08:10 +0000
committersmatz <smatz@openttd.org>2007-12-05 17:08:10 +0000
commit6ab52ddf89baa1316cb3285232fc764f64416631 (patch)
tree3cbf0f2627d7c1bc42c9dfe7411d41725768339f /src/station_cmd.cpp
parent15a5a1a95bd2d4543b43a6e9e3f38be94f9abbd9 (diff)
downloadopenttd-6ab52ddf89baa1316cb3285232fc764f64416631.tar.xz
(svn r11576) -Codechange: enumerize and comment station GUI
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r--src/station_cmd.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 23d017019..895d90dca 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -45,6 +45,7 @@
#include "autoslope.h"
#include "transparency.h"
#include "water.h"
+#include "station_gui.h"
DEFINE_OLD_POOL_GENERIC(Station, Station)
DEFINE_OLD_POOL_GENERIC(RoadStop, RoadStop)
@@ -662,7 +663,7 @@ static void UpdateStationAcceptance(Station *st, bool show_msg)
}
/* redraw the station view since acceptance changed */
- InvalidateWindowWidget(WC_STATION_VIEW, st->index, 5);
+ InvalidateWindowWidget(WC_STATION_VIEW, st->index, SVW_ACCEPTLIST);
}
static void UpdateStationSignCoord(Station *st)
@@ -2533,9 +2534,9 @@ static void UpdateStationRating(Station *st)
StationID index = st->index;
if (waiting_changed) {
- InvalidateWindow(WC_STATION_VIEW, index);
+ InvalidateWindow(WC_STATION_VIEW, index); // update whole window
} else {
- InvalidateWindowWidget(WC_STATION_VIEW, index, 6);
+ InvalidateWindowWidget(WC_STATION_VIEW, index, SVW_RATINGLIST); // update only ratings list
}
}