diff options
Diffstat (limited to 'src/engine/editor')
| -rw-r--r-- | src/engine/editor/Editor.cpp | 1 | ||||
| -rw-r--r-- | src/engine/editor/EditorMath.cpp | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/engine/editor/Editor.cpp b/src/engine/editor/Editor.cpp index 446da7487..dc5a69cde 100644 --- a/src/engine/editor/Editor.cpp +++ b/src/engine/editor/Editor.cpp @@ -30,6 +30,7 @@ namespace Editor { Editor::Editor() { } + std::vector<Mtx> EditorMatrix; void Editor::Load() { printf("Editor: Loading Editor...\n"); eObjectPicker.Load(); diff --git a/src/engine/editor/EditorMath.cpp b/src/engine/editor/EditorMath.cpp index a3e19716c..4c36a17a2 100644 --- a/src/engine/editor/EditorMath.cpp +++ b/src/engine/editor/EditorMath.cpp @@ -28,7 +28,7 @@ bool IsInGameScreen() { Ship::Coords mouse = wnd->GetMousePos(); // Define viewport boundaries - auto gfx_current_game_window_viewport = GameEngine::GetInterpreter().get()->mGameWindowViewport; + auto gfx_current_game_window_viewport = GetInterpreter()->mGameWindowViewport; int left = gfx_current_game_window_viewport.width; int right = left + OTRGetGameRenderWidth(); int top = gfx_current_game_window_viewport.height; @@ -43,7 +43,7 @@ FVector ScreenRayTrace() { Camera* camera = &cameras[0]; Ship::Coords mouse = wnd->GetMousePos(); - auto gfx_current_game_window_viewport = GameEngine::GetInterpreter().get()->mGameWindowViewport; + auto gfx_current_game_window_viewport = GetInterpreter()->mGameWindowViewport; mouse.x -= gfx_current_game_window_viewport.width; mouse.y -= gfx_current_game_window_viewport.height; // Get screen dimensions |
