diff options
author | sapier <Sapier at GMX dot net> | 2014-02-05 00:17:57 +0100 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-02-07 21:39:45 +0100 |
commit | f4f98c9550325aa8178f99cd32ea8806669aa280 (patch) | |
tree | 1c87166f519eec565f56e51bc01f9477b144099f /src/game.cpp | |
parent | 3670f5a37bc3f3eb9733a720e96318e676640185 (diff) | |
download | minetest-f4f98c9550325aa8178f99cd32ea8806669aa280.tar.gz minetest-f4f98c9550325aa8178f99cd32ea8806669aa280.tar.bz2 minetest-f4f98c9550325aa8178f99cd32ea8806669aa280.zip |
Remove lots of dead code
Add check for datatype overflows
use native datatype indices instead of fixed 16bit/32bit ones
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 21 |
1 files changed, 5 insertions, 16 deletions
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<aabb3f> 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 */ |