From 81e5b16d7178f0ee5584201cb2f6c8e36742354f Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 13 Nov 2005 13:43:55 +0000 Subject: (svn r3172) static, const --- subsidy_gui.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'subsidy_gui.c') 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); -- cgit v1.2.3-54-g00ecf