| 95 | } |
| 96 | |
| 97 | bool IsValidSwitchTile(int Index) |
| 98 | { |
| 99 | return ( |
| 100 | Index == TILE_JUMP || |
| 101 | Index == TILE_FREEZE || |
| 102 | Index == TILE_DFREEZE || |
| 103 | Index == TILE_DUNFREEZE || |
| 104 | Index == TILE_LFREEZE || |
| 105 | Index == TILE_LUNFREEZE || |
| 106 | Index == TILE_HIT_ENABLE || |
| 107 | Index == TILE_HIT_DISABLE || |
| 108 | (Index >= TILE_SWITCHTIMEDOPEN && Index <= TILE_SWITCHCLOSE) || |
| 109 | Index == TILE_ADD_TIME || |
| 110 | Index == TILE_SUBTRACT_TIME || |
| 111 | Index == TILE_ALLOW_TELE_GUN || |
| 112 | Index == TILE_ALLOW_BLUE_TELE_GUN || |
| 113 | (IsValidEntity(Index) && Index >= ENTITY_OFFSET + ENTITY_ARMOR_1)); |
| 114 | } |
| 115 | |
| 116 | bool IsSwitchTileFlagsUsed(int Index) |
| 117 | { |
no test coverage detected