From 5238fe24cfefbac9bf362b8d2b5a1a8c1488af91 Mon Sep 17 00:00:00 2001 From: hayayayay <74699483+haya3218@users.noreply.github.com> Date: Sat, 12 Nov 2022 10:37:54 +0800 Subject: [PATCH] Changes (again) --- src/m_menu.c | 4 ++-- src/p_user.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/m_menu.c b/src/m_menu.c index 86a6b7577..f1a2bb418 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -5399,7 +5399,7 @@ static boolean DumbStartsWith(const char *pre, const char *str) { size_t lenpre = strlen(pre), lenstr = strlen(str); - return lenstr < lenpre ? false : memcmp(pre, str, lenpre) == 0; + return lenstr < lenpre ? false : strncmp(toupper(pre), toupper(str), lenpre) == 0; } static void M_HandleAddons(INT32 choice) @@ -5524,7 +5524,7 @@ static void M_HandleAddons(INT32 choice) // no characters? if (DumbStartsWith("KC_", dirmenu[dir_on[menudepthleft]]+DIR_STRING)) { M_StartMessage(va("%c%s\x80\nYou are loading a local skin.\nLocal skins will not be usable\nafter going back from\nthe title screen.\n\n(Press a key)\n", ('\x80' + (highlightflags>>V_CHARCOLORSHIFT)), dirmenu[dir_on[menudepthleft]]+DIR_STRING),NULL,MM_NOTHING); - COM_BufAddText(va("addskins \"%s%s\" -force", menupath, dirmenu[dir_on[menudepthleft]]+DIR_STRING)); + COM_BufAddText(va("addskins \"%s%s\"", menupath, dirmenu[dir_on[menudepthleft]]+DIR_STRING)); } else S_StartSound(NULL, sfx_s26d); diff --git a/src/p_user.c b/src/p_user.c index 33f6a7313..9f368cfe0 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -9006,7 +9006,8 @@ void P_PlayerThink(player_t *player) K_KartPlayerThink(player, cmd); // SRB2kart - DoABarrelRoll(player); + if (rendermode != render_none) + DoABarrelRoll(player); #ifdef HAVE_BLUA LUAh_PlayerThink(player);