diff options
author | tron <tron@openttd.org> | 2004-12-02 22:53:07 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2004-12-02 22:53:07 +0000 |
commit | fdb447ac55fc7faffe6b7477a4ecfa7733b9a03d (patch) | |
tree | 822a14c0bf1d92e45c85d4ce62bc58b7b6cef6c7 /subsidy_gui.c | |
parent | 2c88f958edc2ad87c92ac23b727e27e2ddbe710b (diff) | |
download | openttd-fdb447ac55fc7faffe6b7477a4ecfa7733b9a03d.tar.xz |
(svn r901) Small step in the process to clean up the DPARAM mess:
- reduce to 2 sizes (*DParam64 for 64bit values, *DParam for the rest)
- use inline functions instead of macros
- add assert()s to check for buffer overruns
Diffstat (limited to 'subsidy_gui.c')
-rw-r--r-- | subsidy_gui.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/subsidy_gui.c b/subsidy_gui.c index 4227c4bb5..0e32e7504 100644 --- a/subsidy_gui.c +++ b/subsidy_gui.c @@ -92,7 +92,7 @@ static void DrawSubsidiesWindow(Window *w) SetupSubsidyDecodeParam(s, 1); x2 = DrawString(x+2, y, STR_2027_FROM_TO, 0); - SET_DPARAM16(0, _date - ymd.day + 384 - s->age * 32); + SetDParam(0, _date - ymd.day + 384 - s->age * 32); DrawString(x2, y, STR_2028_BY, 0); y += 10; num++; @@ -113,12 +113,12 @@ static void DrawSubsidiesWindow(Window *w) SetupSubsidyDecodeParam(s, 1); p = DEREF_PLAYER(DEREF_STATION(s->to)->owner); - SET_DPARAM16(3, p->name_1); - SET_DPARAM32(4, p->name_2); + SetDParam(3, p->name_1); + SetDParam(4, p->name_2); xt = DrawString(x+2, y, STR_202C_FROM_TO, 0); - SET_DPARAM16(0, _date - ymd.day + 768 - s->age * 32); + SetDParam(0, _date - ymd.day + 768 - s->age * 32); DrawString(xt, y, STR_202D_UNTIL, 0); y += 10; num++; |