From 47a63e1ca2217cf4319dc22c9b3962c9627eb931 Mon Sep 17 00:00:00 2001 From: AJ Martinez Date: Sun, 28 May 2023 16:07:32 -0700 Subject: [PATCH] If I ever see another macro I'm going to burn down John Carmack's house --- src/k_kart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/k_kart.c b/src/k_kart.c index 849f9b255..dded2750d 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -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);