From 4b2b116481b81de7187693d1303ef12810e11457 Mon Sep 17 00:00:00 2001 From: Sally Cochenour Date: Tue, 17 Mar 2020 18:55:15 -0400 Subject: [PATCH] Try using GameSpeedScalar for thrown item scaling between game speeds, rather than arbritrary values In Hard mode: Spikeballs will be thrown slightly less with this code change, while Bananas will be thrown slightly farther. That said, the difference is so small that it's very likely not noticable, it just makes the code nicer looking & more consistent :P --- 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 13786dba5..319f7a77f 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -3557,12 +3557,12 @@ static mobj_t *K_ThrowKartItem(player_t *player, boolean missile, mobjtype_t map if (missile) { // Use info->speed for missiles - PROJSPEED = FixedMul(mobjinfo[mapthing].speed, FRACUNIT + ((gamespeed-1) * (FRACUNIT/4))); + PROJSPEED = FixedMul(mobjinfo[mapthing].speed, K_GetKartGameSpeedScalar(gamespeed)); } else { // Use pre-determined speed for tossing - PROJSPEED = (82 + ((gamespeed-1) * 14)) * FRACUNIT; // Avg Speed is 41 in Normal + PROJSPEED = FixedMul(82 << FRACBITS, K_GetKartGameSpeedScalar(gamespeed)); } // Scale to map size