From 4d7d665a5eb8886283489833dd25b01e38abab9c Mon Sep 17 00:00:00 2001 From: John Alanbrook Date: Mon, 6 Feb 2023 23:21:00 +0000 Subject: [PATCH] Removed saving and loading on play/pause --- source/engine/yugine.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/source/engine/yugine.c b/source/engine/yugine.c index f3b55a4..674769d 100644 --- a/source/engine/yugine.c +++ b/source/engine/yugine.c @@ -231,27 +231,22 @@ int sim_playing() { return sim_play; } int sim_paused() { return (!sim_play && gameobjects_saved()); } void sim_start() { - /* Save starting state of everything */ - if (!gameobjects_saved()) - gameobject_saveall(); - - sim_play = 1; + sim_play = 1; } void sim_pause() { - sim_play = 0; + sim_play = 0; } void sim_stop() { /* Revert starting state of everything from sim_start */ - sim_play = 0; - gameobject_loadall(); + sim_play = 0; } void sim_step() { - if (sim_paused()) { - sim_play = 2; - } + if (sim_paused()) { + sim_play = 2; + } } void set_timescale(float val) {