Moves the room viewer to the origin, if there is a room viewer
| 459 | |
| 460 | // Moves the room viewer to the origin, if there is a room viewer |
| 461 | void ResetRoomViewer() { |
| 462 | int objnum = FindViewerObject(ROOM_VIEWER_ID); |
| 463 | |
| 464 | if (objnum != -1) { |
| 465 | vm_MakeZero(&Objects[objnum].pos); |
| 466 | ObjSetOrient(&Objects[objnum], &Identity_matrix); |
| 467 | } |
| 468 | } |
no test coverage detected