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

Function VALIDATE_ROOM

Descent3/multisafe.cpp:689–695  ·  view source on GitHub ↗

Returns true if the specified room is valid

Source from the content-addressed store, hash-verified

687#define IOBJ (ObjGet(mstruct->ithandle))
688// Returns true if the specified room is valid
689bool VALIDATE_ROOM(int roomnum) {
690
691 bool valid = ((roomnum >= 0) && (roomnum <= Highest_room_index) && Rooms[roomnum].used);
692 if (!valid)
693 Int3();
694 return valid;
695}
696// Returns true if the specified room & face are valid
697bool VALIDATE_ROOM_FACE(int roomnum, int facenum) {
698

Callers 2

msafe_GetValueFunction · 0.85
msafe_CallFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected