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

Function GetViewerNum

editor/HView.cpp:310–314  ·  view source on GitHub ↗

Returns the number (not the id) of the current viewer, in the range 0..MAX_VIEWERS

Source from the content-addressed store, hash-verified

308
309// Returns the number (not the id) of the current viewer, in the range 0..MAX_VIEWERS
310int GetViewerNum() {
311 ASSERT(Editor_view_mode != VM_ROOM);
312
313 return Viewer_object->id;
314}
315
316// Set the specified object to be the viewer
317void SetViewer(int objnum) {

Callers 4

OnViewerPaneMethod · 0.85
CreateNewViewerFunction · 0.85
SelectNextViewerFunction · 0.85
DeleteViewerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected