Skip to content

Commit

Permalink
Fix #220
Browse files Browse the repository at this point in the history
Due to a race condition players can always win this boss. We should be referring to their status rather than alive state as this will be more reliable.
  • Loading branch information
safalin1 committed Sep 6, 2021
1 parent 0e82752 commit 88dc337
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/scripting/AS-MicroTF2.sp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

//#define DEBUG
//#define LOGGING_STARTUP
#define PLUGIN_VERSION "5.0.0"
#define PLUGIN_VERSION "5.0.1"
#define PLUGIN_PREFIX "\x0700FFFF[ \x07FFFF00WarioWare \x0700FFFF] {default}"
#define PLUGIN_MAPPREFIX "warioware_redux_"

Expand Down
2 changes: 1 addition & 1 deletion src/scripting/Bossgames/Bossgame8.sp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public void Bossgame8_OnMinigameFinish()
{
Player player = new Player(i);

if (player.IsValid && player.IsParticipating && player.IsAlive)
if (player.IsValid && player.IsParticipating && player.Status == PlayerStatus_NotWon)
{
player.Status = PlayerStatus_Winner;
}
Expand Down

0 comments on commit 88dc337

Please sign in to comment.