aboutsummaryrefslogtreecommitdiff
path: root/game/menus/ButtonReplaySubScript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/menus/ButtonReplaySubScript.cpp')
-rw-r--r--game/menus/ButtonReplaySubScript.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/game/menus/ButtonReplaySubScript.cpp b/game/menus/ButtonReplaySubScript.cpp
index 26cb8ee..9308350 100644
--- a/game/menus/ButtonReplaySubScript.cpp
+++ b/game/menus/ButtonReplaySubScript.cpp
@@ -1,9 +1,9 @@
#include "ButtonReplaySubScript.h"
#include "MenusConfig.h"
+#include "../Events.h"
#include <crepe/api/AudioSource.h>
#include <crepe/types.h>
-#include "../Events.h"
using namespace crepe;
using namespace std;
@@ -19,13 +19,12 @@ void ButtonReplaySubScript::init() {
replay.record_start();
}
-
bool ButtonReplaySubScript::on_button_press(const ButtonPressEvent & e) {
replay.play(this->recording);
return false;
}
-bool ButtonReplaySubScript::set_recording(){
+bool ButtonReplaySubScript::set_recording() {
this->recording = replay.record_end();
return false;
}