From c4cc8712af0d532fa2f58ba7755c41b8a05b79e4 Mon Sep 17 00:00:00 2001 From: Yexo Date: Fri, 23 Jan 2009 09:20:57 +0000 Subject: (svn r15219) -Fix (r15216): MSVC failed to find the proper casts. --- src/saveload/oldloader_sl.cpp | 4 ++-- 1 file 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; -- cgit v1.2.3-70-g09d2