If I ever see another macro I'm going to burn down John Carmack's house

This commit is contained in:
AJ Martinez 2023-05-28 16:07:32 -07:00
parent 4c927b09d1
commit 47a63e1ca2

View file

@ -7926,7 +7926,7 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
player->guardCooldown--;
if (player->whip && P_MobjWasRemoved(player->whip))
player->whip = P_SetTarget(&player->whip, NULL);
P_SetTarget(&player->whip, NULL);
if (player->startboost > 0 && onground == true)
{
@ -10637,7 +10637,7 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
player->guardCooldown = 50;
S_StartSound(player->mo, sfx_iwhp);
mobj_t *whip = P_SpawnMobj(player->mo->x, player->mo->y, player->mo->z, MT_INSTAWHIP);
player->whip = P_SetTarget(&player->whip, whip);
P_SetTarget(&player->whip, whip);
P_SetScale(whip, player->mo->scale);
P_SetTarget(&whip->target, player->mo);
K_MatchGenericExtraFlags(whip, player->mo);