| 3301 | World_changed = 1; |
| 3302 | } |
| 3303 | |
| 3304 | void 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" |
nothing calls this directly
no test coverage detected