| 67 | } |
| 68 | |
| 69 | bool RoomData::Active() const |
| 70 | { |
| 71 | if (flipNumber == NO_VALUE) |
| 72 | return true; |
| 73 | |
| 74 | // Since engine swaps whole room memory block but substitutes flippedRoom, |
| 75 | // both original room number and flippedRoom must be chekhed for equality, |
| 76 | // as well as NO_VALUE if checking non-flipped rooms. |
| 77 | return (!FlipStats[flipNumber] && flippedRoom != originalRoom && flippedRoom != NO_VALUE) || |
| 78 | ( FlipStats[flipNumber] && flippedRoom == originalRoom); |
| 79 | } |
| 80 | |
| 81 | void RoomData::GenerateCollisionMesh() |
| 82 | { |
no outgoing calls