diff options
author | peter1138 <peter1138@openttd.org> | 2006-04-08 12:04:23 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-04-08 12:04:23 +0000 |
commit | 59ace676eb14b98a16688685d938c48569dbf236 (patch) | |
tree | ae74d349c3ffaa93a6e05ea9dabd121e4daf8e43 /bridge_gui.c | |
parent | f3563e5d6fbc8fcf2d0df03d0a5e2f5b0c8ed33a (diff) | |
download | openttd-59ace676eb14b98a16688685d938c48569dbf236.tar.xz |
(svn r4322) - Codechange: Remove conversion of kmh to mph from gui code to within the units conversion system, in string.c. This means displaying kmh requires no conversion, instead of being convert from kmh to mph, and then back to kmh again.
Diffstat (limited to 'bridge_gui.c')
-rw-r--r-- | bridge_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge_gui.c b/bridge_gui.c index 2913853a0..778c7b93a 100644 --- a/bridge_gui.c +++ b/bridge_gui.c @@ -50,7 +50,7 @@ static void BuildBridgeWndProc(Window *w, WindowEvent *e) const Bridge *b = &_bridge[_bridgedata.indexes[i + w->vscroll.pos]]; SetDParam(2, _bridgedata.costs[i + w->vscroll.pos]); - SetDParam(1, (b->speed >> 4) * 10); + SetDParam(1, b->speed); SetDParam(0, b->material); DrawSprite(b->sprite, 3, 15 + i * 22); |