1565: Validate game layer hookthrough shortcut r=def- a=12pm

Fixes #1556

Co-authored-by: 12pm <30786226+12pm@users.noreply.github.com>
This commit is contained in:
bors[bot] 2019-04-02 20:57:17 +00:00
commit e2b558335b

View file

@ -4,8 +4,7 @@ bool IsValidGameTile(int Index)
{ {
return ( return (
Index == TILE_AIR Index == TILE_AIR
|| (Index >= TILE_SOLID && Index <= TILE_NOLASER) || (Index >= TILE_SOLID && Index <= TILE_THROUGH)
|| Index == TILE_THROUGH
|| Index == TILE_FREEZE || Index == TILE_FREEZE
|| (Index >= TILE_UNFREEZE && Index <= TILE_DUNFREEZE) || (Index >= TILE_UNFREEZE && Index <= TILE_DUNFREEZE)
|| (Index >= TILE_WALLJUMP && Index <= TILE_SOLO_END) || (Index >= TILE_WALLJUMP && Index <= TILE_SOLO_END)