Score resetting now also takes effect if a player ends the level while dead.
Fix busted walls not stopping their sound sequences.
This commit is contained in:
parent
4416ba30e5
commit
b3b664f7cc
4 changed files with 11 additions and 20 deletions
|
|
@ -750,6 +750,13 @@ Class SWWMHandler : EventHandler
|
|||
}
|
||||
}
|
||||
ClearAllShaders(players[consoleplayer]);
|
||||
// reset score on dead players (death exit™)
|
||||
for ( int i=0; i<MAXPLAYERS; i++ )
|
||||
{
|
||||
if ( !playeringame[i] || (players[i].Health > 0) ) continue;
|
||||
let c = SWWMCredits.Find(players[i]);
|
||||
if ( c ) c.credits = c.hcredits = 0;
|
||||
}
|
||||
}
|
||||
|
||||
override void WorldLoaded( WorldEvent e )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue