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

Method OnObjectPlaceCameraAtViewer

editor/MainFrm.cpp:3261–3274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3259 World_changed = 1;
3260}
3261
3262void CMainFrame::OnObjectPlaceCameraAtViewer() {
3263 int objnum;
3264
3265 objnum = ObjCreate(OBJ_CAMERA, 0, Viewer_object->roomnum, &Viewer_object->pos, &Viewer_object->orient);
3266
3267 if (objnum == -1) {
3268 Int3();
3269 return;
3270 }
3271
3272 EditorStatus("Camera created as object %d\n", objnum);
3273
3274 World_changed = 1;
3275}
3276
3277void CMainFrame::OnObjectPlaceCameraAtCurrentFace() {

Callers

nothing calls this directly

Calls 2

ObjCreateFunction · 0.85
EditorStatusFunction · 0.85

Tested by

no test coverage detected