Fix abort where OnGiveSecret is called before PostBeginPlay (because some mappers are just that wonderful).
This commit is contained in:
parent
ed70f7d92e
commit
4416ba30e5
2 changed files with 3 additions and 1 deletions
|
|
@ -1812,6 +1812,8 @@ Class Demolitionist : PlayerPawn
|
|||
if ( CheckLocalView() ) SWWMHandler.AddOneliner("findsecret",2,40);
|
||||
SWWMCredits.Give(player,score);
|
||||
SWWMScoreObj.Spawn(score,Vec3Offset(0,0,Height/2));
|
||||
// somehow ongivesecret can be called BEFORE PostBeginPlay (what the fuck)
|
||||
if ( !mystats ) mystats = SWWMStats.Find(player);
|
||||
mystats.secrets++;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue