From 8d4fd5a1eacec477154d0c1ec11b77255d566265 Mon Sep 17 00:00:00 2001 From: TehRealSalt Date: Sun, 29 Jul 2018 15:59:35 -0400 Subject: [PATCH] sink --- src/k_kart.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/k_kart.c b/src/k_kart.c index 69d73e83..50d03c1e 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -2550,6 +2550,7 @@ static void K_DoHyudoroSteal(player_t *player) INT32 playerswappable[MAXPLAYERS]; INT32 stealplayer = -1; // The player that's getting stolen from INT32 prandom = 0; + fixed_t sink = P_RandomChance(FRACUNIT/64); for (i = 0; i < MAXPLAYERS; i++) { @@ -2573,7 +2574,7 @@ static void K_DoHyudoroSteal(player_t *player) prandom = P_RandomFixed(); S_StartSound(player->mo, sfx_s3k92); - if (P_RandomChance(FRACUNIT/64)) // BEHOLD THE KITCHEN SINK + if (sink) // BEHOLD THE KITCHEN SINK { player->kartstuff[k_hyudorotimer] = hyudorotime; player->kartstuff[k_stealingtimer] = stealtime;