Fix macro expansion warning Sryder got

This commit is contained in:
TehRealSalt 2019-03-08 19:06:27 -05:00
parent 4f8665c785
commit 4faaa932ec

View file

@ -820,12 +820,13 @@ static INT32 K_KartGetItemOdds(UINT8 pos, SINT8 item, fixed_t mashed, boolean sp
#define PLAYERSCALING (8 - (spbrush ? 2 : pingame)) #define PLAYERSCALING (8 - (spbrush ? 2 : pingame))
#define POWERITEMODDS(odds) \ #define POWERITEMODDS(odds) {\
if (franticitems) \ if (franticitems) \
odds <<= 1; \ odds <<= 1; \
odds = FixedMul(odds<<FRACBITS, FRACUNIT + ((PLAYERSCALING << FRACBITS) / 25)) >> FRACBITS; \ odds = FixedMul(odds<<FRACBITS, FRACUNIT + ((PLAYERSCALING << FRACBITS) / 25)) >> FRACBITS; \
if (mashed > 0) \ if (mashed > 0) \
odds = FixedDiv(odds<<FRACBITS, FRACUNIT + mashed) >> FRACBITS \ odds = FixedDiv(odds<<FRACBITS, FRACUNIT + mashed) >> FRACBITS; \
}
#define COOLDOWNONSTART (leveltime < (30*TICRATE)+starttime) #define COOLDOWNONSTART (leveltime < (30*TICRATE)+starttime)