mirror of https://github.com/OpenTTD/OpenTTD
(svn r15219) -Fix (r15216): MSVC failed to find the proper casts.
parent
8ecdbf216d
commit
c8cbdc17d3
|
@ -666,10 +666,10 @@ static bool LoadOldCargoPaymentRate(LoadgameState *ls, int num)
|
||||||
* which otherwise would cause much less income while the annual running costs of
|
* which otherwise would cause much less income while the annual running costs of
|
||||||
* the vehicles stay the same" */
|
* 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 = m >> 16;
|
||||||
_old_price_frac = GB(m, 0, 16);
|
_old_price_frac = GB((int64)m, 0, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
_cargo_payment_rates[num] = -_old_price;
|
_cargo_payment_rates[num] = -_old_price;
|
||||||
|
|
Loading…
Reference in New Issue