From f4f98c9550325aa8178f99cd32ea8806669aa280 Mon Sep 17 00:00:00 2001 From: sapier Date: Wed, 5 Feb 2014 00:17:57 +0100 Subject: Remove lots of dead code Add check for datatype overflows use native datatype indices instead of fixed 16bit/32bit ones --- src/game.cpp | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index b540e3314..196d1e316 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1518,6 +1518,9 @@ void the_game( str += "]"; device->setWindowCaption(str.c_str()); + // Info text + std::wstring infotext; + for(;;) { if(device->run() == false || kill == true) @@ -1700,23 +1703,9 @@ void the_game( // Hilight boxes collected during the loop and displayed std::vector hilightboxes; - - // Info text - std::wstring infotext; - - /* - Debug info for client - */ - { - static float counter = 0.0; - counter -= dtime; - if(counter < 0) - { - counter = 30.0; - client.printDebugInfo(infostream); - } - } + /* reset infotext */ + infotext = L""; /* Profiler */ -- cgit v1.2.3