diff options
author | tom <tom@ground-control> | 2015-11-23 14:09:41 -0600 |
---|---|---|
committer | tom <tom@ground-control> | 2015-11-23 14:09:41 -0600 |
commit | 8228cd7ef6156d87ccf33335466c86fa30dadd8b (patch) | |
tree | d3f4beb89343bae9fc9cdf5504c77c6d5acadaad /src/main.cpp | |
parent | 4c50cb6b322368a89feef13efa091c765c966e5b (diff) |
removed unessasary pause code and improved list iteration
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 15 |
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) |