diff options
author | Yexo <Yexo@openttd.org> | 2009-01-23 09:20:57 +0000 |
---|---|---|
committer | Yexo <Yexo@openttd.org> | 2009-01-23 09:20:57 +0000 |
commit | c4cc8712af0d532fa2f58ba7755c41b8a05b79e4 (patch) | |
tree | 45bed19d1a92fb8f504ae85dc2762296439d7d15 /src/saveload | |
parent | 675303d656404f10289ec72467256d0fa9f776e2 (diff) | |
download | openttd-c4cc8712af0d532fa2f58ba7755c41b8a05b79e4.tar.xz |
(svn r15219) -Fix (r15216): MSVC failed to find the proper casts.
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/oldloader_sl.cpp | 4 |
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; |