mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-17 23:21:05 +00:00
Fix a warning
This commit is contained in:
parent
ebd777fe8b
commit
546b98b4cb
1 changed files with 2 additions and 1 deletions
|
@ -7405,13 +7405,14 @@ void P_MobjThinker(mobj_t *mobj)
|
|||
break;
|
||||
case MT_REDITEM:
|
||||
{
|
||||
fixed_t magnitude;
|
||||
if (mobj->threshold > 0)
|
||||
mobj->threshold--;
|
||||
if (leveltime % 7 == 0)
|
||||
S_StartSound(mobj, mobj->info->activesound);
|
||||
|
||||
// Do a similar thing to what is done to the player to keep the red shell at a speed cap
|
||||
fixed_t magnitude = P_AproxDistance(mobj->momx, mobj->momy);
|
||||
magnitude = P_AproxDistance(mobj->momx, mobj->momy);
|
||||
if (magnitude > 64*FRACUNIT)
|
||||
{
|
||||
mobj->momx = FixedMul(FixedDiv(mobj->momx, magnitude), 64*FRACUNIT);
|
||||
|
|
Loading…
Reference in a new issue