MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / VALIDATE_ROOM_FACE

Function VALIDATE_ROOM_FACE

Descent3/multisafe.cpp:697–704  ·  view source on GitHub ↗

Returns true if the specified room & face are valid

Source from the content-addressed store, hash-verified

695}
696// Returns true if the specified room & face are valid
697bool VALIDATE_ROOM_FACE(int roomnum, int facenum) {
698
699 bool valid = ((roomnum >= 0) && (roomnum <= Highest_room_index) && (Rooms[roomnum].used) && (facenum >= 0) &&
700 (facenum < Rooms[roomnum].num_faces));
701 if (!valid)
702 Int3();
703 return valid;
704}
705// Returns true if the specified room & portal are valid
706bool VALIDATE_ROOM_PORTAL(int roomnum, int portalnum) {
707

Callers 1

msafe_CallFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected