aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSemperVinco <w.deweijer@hotmail.com>2017-03-02 22:09:17 +0100
committerSemperVinco <w.deweijer@hotmail.com>2017-03-02 22:09:39 +0100
commitae7276c1c03405bace315984c6ed6e84571ec887 (patch)
tree4ac8dc9fcd07d1c0f17c1e1b2f28b8a8d795a8ab
parent73f477e76de1ffee1f39ddac9b0a5dadd350647d (diff)
tick counter
-rw-r--r--main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 0412487..99ba3f7 100644
--- a/main.cpp
+++ b/main.cpp
@@ -265,7 +265,7 @@ int main(int argc,char **argv){
}
}
- sb=new ScreenBuffer(SIZE*3,SIZE);
+ sb=new ScreenBuffer(SIZE*3, SIZE+1);
#ifndef _WIN32
signal(SIGINT,signalHandler);
#endif
@@ -274,6 +274,7 @@ int main(int argc,char **argv){
usleep(3000);
world.tick();
world.print(*sb);
+ sb->mvprintf(0, SIZE, "step: %5i", i);
sb->draw();
}
delete sb;