From ae7276c1c03405bace315984c6ed6e84571ec887 Mon Sep 17 00:00:00 2001 From: SemperVinco Date: Thu, 2 Mar 2017 22:09:17 +0100 Subject: tick counter --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.cpp') 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; -- cgit v1.2.3-70-g09d2