Fixed the fireball Sal sleepily helped me with.

This commit is contained in:
toaster 2018-06-06 18:48:37 +01:00
parent 0bb5419785
commit 3f7ffc61a5

View file

@ -3513,8 +3513,7 @@ static void P_DoFiring(player_t *player, ticcmd_t *cmd)
{
player->pflags |= PF_ATTACKDOWN;
mo = P_SpawnPlayerMissile(player->mo, MT_FIREBALL, 0);
if (mo && ((mo->info->speed>>FRACBITS) * mo->scale) < player->speed)
P_InstaThrust(mo, player->mo->angle, player->speed);
P_InstaThrust(mo, player->mo->angle, ((mo->info->speed>>FRACBITS)*player->mo->scale) + player->speed);
S_StartSound(player->mo, sfx_mario7);
return;
}