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

Function qObjRoom

scripts/DallasFuncs.cpp:5480–5488  ·  view source on GitHub ↗

$$QUERY Objects r:[o:Object=IT] room qObjRoom Object Room Returns the room the specified object is in Parameters: Object: The object whose room you want to know $$END */

Source from the content-addressed store, hash-verified

5478$$END
5479*/
5480int qObjRoom(int objref) {
5481 msafe_struct mstruct;
5482
5483 mstruct.objhandle = objref;
5484
5485 MSafe_GetValue(MSAFE_OBJECT_ROOMNUM, &mstruct);
5486
5487 return mstruct.roomnum;
5488}
5489
5490// These should be in object_external.h
5491#define ROOMNUM_CELLNUM_FLAG 0x80000000

Callers 5

CallEventMethod · 0.85
CallEventMethod · 0.85
aPriestKeyRoomChangeFunction · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected