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

Function ResetRoomViewer

editor/HView.cpp:461–468  ·  view source on GitHub ↗

Moves the room viewer to the origin, if there is a room viewer

Source from the content-addressed store, hash-verified

459
460// Moves the room viewer to the origin, if there is a room viewer
461void 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}

Callers 2

OnLoadRoomMethod · 0.85

Calls 3

FindViewerObjectFunction · 0.85
vm_MakeZeroFunction · 0.85
ObjSetOrientFunction · 0.85

Tested by

no test coverage detected