Disallow some more switch entities

As reported by ReD
This commit is contained in:
def 2021-02-01 15:01:45 +01:00
parent 7b721bd7ac
commit 75a2ca613e

View file

@ -74,7 +74,7 @@ bool IsValidSwitchTile(int Index)
Index == TILE_SUBSTRACT_TIME ||
Index == TILE_ALLOW_TELE_GUN ||
Index == TILE_ALLOW_BLUE_TELE_GUN ||
IsValidEntity(Index));
(IsValidEntity(Index) && Index >= ENTITY_OFFSET + ENTITY_ARMOR_1));
}
bool IsValidTuneTile(int Index)