mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Make sure we always initialize with a scene
This commit is contained in:
@@ -109,7 +109,9 @@ namespace GlitchyEditor
|
||||
|
||||
if (args.Count >= 1)
|
||||
LoadSceneFile(args[0]);
|
||||
else
|
||||
|
||||
// Create a new scene, if LoadSceneFile failed
|
||||
if (_activeScene == null)
|
||||
NewScene();
|
||||
}
|
||||
|
||||
@@ -199,7 +201,6 @@ namespace GlitchyEditor
|
||||
if (_sceneState != .Edit && _isPaused)
|
||||
updateMode = .None;
|
||||
|
||||
|
||||
_activeScene.Update(gameTime, updateMode);
|
||||
|
||||
// Clear the swapchain-buffer
|
||||
|
||||
Reference in New Issue
Block a user