Spray Cans: Don't spawn in Attack modes

This commit is contained in:
toaster 2024-03-19 16:36:37 +00:00
parent 56e8964427
commit 74c6e1a0fd

View file

@ -13083,7 +13083,9 @@ static boolean P_SetupSpawnedMapThing(mapthing_t *mthing, mobj_t *mobj)
}
case MT_SPRAYCAN:
{
if (nummapspraycans == UINT8_MAX || tutorialchallenge == TUTORIALSKIP_INPROGRESS)
if (nummapspraycans == UINT8_MAX
|| modeattacking != ATTACKING_NONE
|| tutorialchallenge == TUTORIALSKIP_INPROGRESS)
{
P_RemoveMobj(mobj);
return false;