Inventory resets weren't accounted for properly in PlayerEntered.

This commit is contained in:
Mari the Deer 2021-10-14 16:39:57 +02:00
commit 5a1439762d
2 changed files with 3 additions and 3 deletions

View file

@ -100,7 +100,7 @@ extend Class SWWMHandler
s.GotWeapon(Weapon(i).GetClass());
}
}
else if ( (s.lastcluster != level.cluster) || !(level.clusterflags&LevelLocals.CLUSTER_HUB) )
else if ( (s.lastcluster != level.cluster) || !(level.clusterflags&LevelLocals.CLUSTER_HUB) || (level.removeitems && !e.IsReturn) )
{
// clear the "weapon got" lists for weapons we don't have anymore (unless we're in a hub)
// so the obtain lines play again