| 323 | } |
| 324 | |
| 325 | short* GetTriggerIndex(FloorInfo* floor, int x, int y, int z) |
| 326 | { |
| 327 | const auto& bottomSector = GetPointCollision(Vector3i(x, y, z), floor->RoomNumber).GetBottomSector(); |
| 328 | |
| 329 | if (bottomSector.TriggerIndex == NO_VALUE) |
| 330 | return nullptr; |
| 331 | |
| 332 | return &g_Level.FloorData[bottomSector.TriggerIndex]; |
| 333 | } |
| 334 | |
| 335 | short* GetTriggerIndex(ItemInfo* item) |
| 336 | { |