Try to fix jetpack sound getting stuck sometimes.

This commit is contained in:
Mari the Deer 2021-01-29 23:05:25 +01:00
commit 0b589fa81f
3 changed files with 11 additions and 14 deletions

View file

@ -1032,6 +1032,7 @@ Class SWWMHandler : EventHandler
c.Destroy();
}
// reset inventory (including unclearables) on forced pistol starts (must have visited at least one map, though)
// known bug: the previous weapon will play its select sound regardless, this is ENTIRELY IMPOSSIBLE to fix
if ( swwm_pistolstart && (s.lstats.Size() > 0) && ((s.lastcluster != level.cluster) || !(level.clusterflags&LevelLocals.CLUSTER_HUB)) )
{
if ( swwm_resetscore ) c.credits = c.hcredits = 0;