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

Method OnObjectSetViewerFromCamera

editor/MainFrm.cpp:3303–3316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3301 World_changed = 1;
3302}
3303
3304void CMainFrame::OnObjectSetViewerFromCamera() {
3305 object *objp = &Objects[Cur_object_index];
3306
3307 if (objp->type != OBJ_CAMERA) {
3308 OutrageMessageBox("The current object must be a camera for this operation.");
3309 return;
3310 }
3311
3312 MoveViewer(&objp->pos, objp->roomnum, &objp->orient);
3313
3314 EditorStatus("Viewer moved to object %d", Cur_object_index);
3315
3316 World_changed = 1;
3317}
3318
3319#include "LevelInfoDialog.h"

Callers

nothing calls this directly

Calls 3

OutrageMessageBoxFunction · 0.85
MoveViewerFunction · 0.85
EditorStatusFunction · 0.85

Tested by

no test coverage detected