From 7e8c57ee4d82359da6da0d3b8e7b65c2d3440387 Mon Sep 17 00:00:00 2001 From: tmyqlfpir <80724828+tmyqlfpir@users.noreply.github.com> Date: Fri, 8 Sep 2023 20:25:30 +1000 Subject: [PATCH 1/2] Fix random five scenario using classic weapons for last slot --- src/game/mplayer/mplayer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/mplayer/mplayer.c b/src/game/mplayer/mplayer.c index 3ad293e9f..83cf94d61 100644 --- a/src/game/mplayer/mplayer.c +++ b/src/game/mplayer/mplayer.c @@ -1154,7 +1154,11 @@ void mpApplyWeaponSet(void) mpSetWeaponSlot(i, random() % numoptions + 1); } +#ifndef PLATFORM_N64 // take into account the new classic weapons slots + mpSetWeaponSlot(i, MPWEAPON_DISABLED - 1); +#else mpSetWeaponSlot(i, mpGetNumWeaponOptions() - 1); +#endif } } From 8a757745064d9fb67e6f706178fad3a95fb6f88d Mon Sep 17 00:00:00 2001 From: tmyqlfpir <80724828+tmyqlfpir@users.noreply.github.com> Date: Fri, 8 Sep 2023 20:40:58 +1000 Subject: [PATCH 2/2] Fix comment typo Introduced in commit 920c0eada56d7c3cce0470a9f96803070acfb10d --- src/game/propobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/propobj.c b/src/game/propobj.c index d1a5ccf39..e5a96f5b4 100644 --- a/src/game/propobj.c +++ b/src/game/propobj.c @@ -20060,7 +20060,7 @@ bool doorCalcIntendedFrac(struct doorobj *door) if (door->base.flags3 & OBJFLAG3_DOOR_STICKY) { s32 value = (random() % 64) + 30; -#ifndef PLATFORM_N64 // emulate low fps cal rate for stackage test +#ifndef PLATFORM_N64 // emulate low fps cal rate for stuckage test if (((g_Vars.lvframenum % value) == 0) && ((g_Vars.lvframe60 & 3) == 0)) { #else