Remove all player buffs/debuffs at the start of a stage to prevent buff stacking exploit from using items in your loadout and dying/restarting the stage. Release Build 10256.

This commit is contained in:
sigonasr2 2024-07-22 00:24:42 -05:00
parent 2cb6fe9d87
commit aefa81d71f
3 changed files with 2 additions and 1 deletions

View File

@ -2325,6 +2325,7 @@ void AiL::_PrepareLevel(MapName map,MusicChange changeMusic){
GetPlayer()->_SetIframes(0.f); GetPlayer()->_SetIframes(0.f);
GetPlayer()->SetInvisible(false); GetPlayer()->SetInvisible(false);
GetPlayer()->ResetVelocity(); GetPlayer()->ResetVelocity();
GetPlayer()->RemoveAllBuffs();
STEAMINPUT( //This is kind of a hack to refresh the in-game controls handle and button icons if for some reason it's not setup correctly. STEAMINPUT( //This is kind of a hack to refresh the in-game controls handle and button icons if for some reason it's not setup correctly.
Input::LoadSteamButtonIcons(); Input::LoadSteamButtonIcons();

View File

@ -39,7 +39,7 @@ All rights reserved.
#define VERSION_MAJOR 1 #define VERSION_MAJOR 1
#define VERSION_MINOR 2 #define VERSION_MINOR 2
#define VERSION_PATCH 3 #define VERSION_PATCH 3
#define VERSION_BUILD 10254 #define VERSION_BUILD 10256
#define stringify(a) stringify_(a) #define stringify(a) stringify_(a)
#define stringify_(a) #a #define stringify_(a) #a