mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13: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)
|
if (args.Count >= 1)
|
||||||
LoadSceneFile(args[0]);
|
LoadSceneFile(args[0]);
|
||||||
else
|
|
||||||
|
// Create a new scene, if LoadSceneFile failed
|
||||||
|
if (_activeScene == null)
|
||||||
NewScene();
|
NewScene();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -199,7 +201,6 @@ namespace GlitchyEditor
|
|||||||
if (_sceneState != .Edit && _isPaused)
|
if (_sceneState != .Edit && _isPaused)
|
||||||
updateMode = .None;
|
updateMode = .None;
|
||||||
|
|
||||||
|
|
||||||
_activeScene.Update(gameTime, updateMode);
|
_activeScene.Update(gameTime, updateMode);
|
||||||
|
|
||||||
// Clear the swapchain-buffer
|
// Clear the swapchain-buffer
|
||||||
|
|||||||
Reference in New Issue
Block a user