summaryrefslogtreecommitdiff
path: root/src/bridge_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-21 17:25:17 +0000
committerrubidium <rubidium@openttd.org>2007-06-21 17:25:17 +0000
commit9c0944aa09b1d36a60d81c41088a906064086bfb (patch)
tree9b6fd14e50d7ab0c8fb901cfad2e00092a6b0470 /src/bridge_gui.cpp
parentc5225992c168b3546d37f5309b668d9fe5f4af1d (diff)
downloadopenttd-9c0944aa09b1d36a60d81c41088a906064086bfb.tar.xz
(svn r10258) -Codechange: as we are now using int64 all over the place, it's better to use int64 variables in the string generating too instead of packing them into two int32s.
-Fix: some displays of money were wrong.
Diffstat (limited to 'src/bridge_gui.cpp')
-rw-r--r--src/bridge_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bridge_gui.cpp b/src/bridge_gui.cpp
index c850d6d2c..238ac1698 100644
--- a/src/bridge_gui.cpp
+++ b/src/bridge_gui.cpp
@@ -47,7 +47,7 @@ static void BuildBridgeWndProc(Window *w, WindowEvent *e)
for (uint i = 0; i < 4 && i + w->vscroll.pos < _bridgedata.count; i++) {
const Bridge *b = &_bridge[_bridgedata.indexes[i + w->vscroll.pos]];
- SetDParamMoney(2, _bridgedata.costs[i + w->vscroll.pos]);
+ SetDParam(2, _bridgedata.costs[i + w->vscroll.pos]);
SetDParam(1, b->speed * 10 / 16);
SetDParam(0, b->material);
DrawSprite(b->sprite, b->pal, 3, 15 + i * 22);