summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 022a2aa..c0d59af 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -31,20 +31,9 @@ int main()
else if (c == 'j')
l.x = l.x-1;
else if (c == 'q')
- break;
+ break;
else if (c == 'p')
- {
- if (paused)
- {
- timeout(100);
- paused = false;
- }
- else
- {
- timeout(-1);
- paused = true;
- }
- }
+ paused = !paused;
cursor.move(l);
if (!paused)