$$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 */
| 5478 | $$END |
| 5479 | */ |
| 5480 | int 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 |
no outgoing calls
no test coverage detected