Fixed the fireball Sal sleepily helped me with.
This commit is contained in:
parent
0bb5419785
commit
3f7ffc61a5
|
@ -3513,8 +3513,7 @@ static void P_DoFiring(player_t *player, ticcmd_t *cmd)
|
||||||
{
|
{
|
||||||
player->pflags |= PF_ATTACKDOWN;
|
player->pflags |= PF_ATTACKDOWN;
|
||||||
mo = P_SpawnPlayerMissile(player->mo, MT_FIREBALL, 0);
|
mo = P_SpawnPlayerMissile(player->mo, MT_FIREBALL, 0);
|
||||||
if (mo && ((mo->info->speed>>FRACBITS) * mo->scale) < player->speed)
|
P_InstaThrust(mo, player->mo->angle, ((mo->info->speed>>FRACBITS)*player->mo->scale) + player->speed);
|
||||||
P_InstaThrust(mo, player->mo->angle, player->speed);
|
|
||||||
S_StartSound(player->mo, sfx_mario7);
|
S_StartSound(player->mo, sfx_mario7);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue