aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index d22360b..e3d69fb 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -420,16 +420,22 @@ int main(void)
{
state.layout = State<X, Y>::Layout::UNLIMITED;
state.reset();
+ time_start = Clock::now();
+ time_cur = time_start;
}
else if (IsKeyPressed(KEY_TWO))
{
state.layout = State<X, Y>::Layout::WALLS;
state.reset();
+ time_start = Clock::now();
+ time_cur = time_start;
}
else if (IsKeyPressed(KEY_THREE))
{
state.layout = State<X, Y>::Layout::WALLED_GARDEN;
state.reset();
+ time_start = Clock::now();
+ time_cur = time_start;
}
if (!paused && !failed)
{