Speed updates based on number of orbiting items

This commit is contained in:
Sally Cochenour 2019-01-30 14:24:04 -05:00
parent bc4832aa40
commit a81546177d
1 changed files with 2 additions and 1 deletions

View File

@ -3626,6 +3626,7 @@ static void K_MoveHeldObjects(player_t *player)
case MT_JAWZ_SHIELD:
{
mobj_t *cur = player->mo->hnext;
fixed_t speed = ((8 - min(4, player->kartstuff[k_itemamount])) * cur->info->speed) / 7;
player->kartstuff[k_bananadrag] = 0; // Just to make sure
@ -3643,7 +3644,7 @@ static void K_MoveHeldObjects(player_t *player)
cur->color = player->skincolor;
cur->angle -= ANGLE_90;
cur->angle += FixedAngle(cur->info->speed);
cur->angle += FixedAngle(speed);
if (cur->extravalue1 < radius)
cur->extravalue1 += P_AproxDistance(cur->extravalue1, radius) / 12;