summaryrefslogtreecommitdiff
path: root/subsidy_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-13 13:43:55 +0000
committertron <tron@openttd.org>2005-11-13 13:43:55 +0000
commit81e5b16d7178f0ee5584201cb2f6c8e36742354f (patch)
tree385ce09aff7cf19e072a627e83e91fe8a5f3fb3b /subsidy_gui.c
parentd97f56b4e2b6159e696128932da28b89a13a30e0 (diff)
downloadopenttd-81e5b16d7178f0ee5584201cb2f6c8e36742354f.tar.xz
(svn r3172) static, const
Diffstat (limited to 'subsidy_gui.c')
-rw-r--r--subsidy_gui.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/subsidy_gui.c b/subsidy_gui.c
index db09ec9c5..70cc3078c 100644
--- a/subsidy_gui.c
+++ b/subsidy_gui.c
@@ -16,7 +16,7 @@
static void HandleSubsidyClick(int y)
{
- Subsidy *s;
+ const Subsidy* s;
int num,offs;
TileIndex xy;
@@ -74,12 +74,11 @@ handle_click:
}
}
-static void DrawSubsidiesWindow(Window *w)
+static void DrawSubsidiesWindow(const Window* w)
{
YearMonthDay ymd;
- Subsidy *s;
+ const Subsidy* s;
int x,xt,y,num,x2;
- Player *p;
DrawWindowWidgets(w);
@@ -114,6 +113,8 @@ static void DrawSubsidiesWindow(Window *w)
for(s=_subsidies; s != endof(_subsidies); s++) {
if (s->cargo_type != CT_INVALID && s->age >= 12) {
+ const Player* p;
+
SetupSubsidyDecodeParam(s, 1);
p = GetPlayer(GetStation(s->to)->owner);