summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYexo <yexo@openttd.org>2009-01-23 09:20:57 +0000
committerYexo <yexo@openttd.org>2009-01-23 09:20:57 +0000
commitc8cbdc17d3ba53e039d9a408823b2aa76a164c8d (patch)
tree45bed19d1a92fb8f504ae85dc2762296439d7d15
parent8ecdbf216dbd0917ddb9eed0466864c617373040 (diff)
downloadopenttd-c8cbdc17d3ba53e039d9a408823b2aa76a164c8d.tar.xz
(svn r15219) -Fix (r15216): MSVC failed to find the proper casts.
-rw-r--r--src/saveload/oldloader_sl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/oldloader_sl.cpp b/src/saveload/oldloader_sl.cpp
index 0b449ca90..afb60401e 100644
--- a/src/saveload/oldloader_sl.cpp
+++ b/src/saveload/oldloader_sl.cpp
@@ -666,10 +666,10 @@ static bool LoadOldCargoPaymentRate(LoadgameState *ls, int num)
* which otherwise would cause much less income while the annual running costs of
* the vehicles stay the same" */
- Money m = ((((Money)_old_price) << 16) + _old_price_frac) * 124 / 74;
+ Money m = ((((Money)_old_price) << 16) + (uint)_old_price_frac) * 124 / 74;
_old_price = m >> 16;
- _old_price_frac = GB(m, 0, 16);
+ _old_price_frac = GB((int64)m, 0, 16);
}
_cargo_payment_rates[num] = -_old_price;