diff options
author | rubidium <rubidium@openttd.org> | 2007-10-20 14:51:09 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-10-20 14:51:09 +0000 |
commit | eadd6765e139d452ab11a5785b1761901a1932aa (patch) | |
tree | 28fbe813d418b83e119aa615200f98b20ba520c8 /src/engine_gui.cpp | |
parent | 3a361422fa7fbddf7cd3480e216aae214e793743 (diff) | |
download | openttd-eadd6765e139d452ab11a5785b1761901a1932aa.tar.xz |
(svn r11312) -Codechange: implement a overflow safe integer and use that for money and don't misuses CommandCost to have a overflow safe integer. Based on a patch by Noldo.
Diffstat (limited to 'src/engine_gui.cpp')
-rw-r--r-- | src/engine_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine_gui.cpp b/src/engine_gui.cpp index efe3b1c8b..f164301fd 100644 --- a/src/engine_gui.cpp +++ b/src/engine_gui.cpp @@ -120,7 +120,7 @@ void ShowEnginePreviewWindow(EngineID engine) static void DrawTrainEngineInfo(EngineID engine, int x, int y, int maxw) { const RailVehicleInfo *rvi = RailVehInfo(engine); - uint multihead = (rvi->railveh_type == RAILVEH_MULTIHEAD) ? 1 : 0; + int multihead = (rvi->railveh_type == RAILVEH_MULTIHEAD) ? 1 : 0; SetDParam(0, (_price.build_railvehicle >> 3) * rvi->base_cost >> 5); SetDParam(2, rvi->max_speed * 10 / 16); |