added speed to the save

This commit is contained in:
EternalRat
2021-06-16 11:47:46 +02:00
parent 384c5e1188
commit 2ed5b79cfc
10 changed files with 54 additions and 14 deletions
-1
View File
@@ -53,7 +53,6 @@ namespace BBM
if (gameState.currentScene == GameState::SceneID::GameScene || gameState.currentScene == GameState::SceneID::SplashScreen) {
for (auto &[_, component]: engine.getScene()->view<ControllableComponent>()) {
if (component.pause && gameState.currentScene == GameState::SceneID::GameScene) {
ParserYAML::save(engine.getScene());
gameState.nextScene = GameState::SceneID::PauseMenuScene;
break;
} else if (gameState.currentScene == GameState::SceneID::SplashScreen && component.jump) {