summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-06-26 03:14:52 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-06-26 03:14:52 +0300
commitc1ceabef717d4461cab8832fe75068c7c14cb9b5 (patch)
treedc49bfe1a7cdcf0b8547d8c73a0e0992fc559a75 /src/game.cpp
parentbb940a946dbca49dc03af83fe55d195bd9fdc62e (diff)
downloadminetest-c1ceabef717d4461cab8832fe75068c7c14cb9b5.tar.gz
minetest-c1ceabef717d4461cab8832fe75068c7c14cb9b5.tar.bz2
minetest-c1ceabef717d4461cab8832fe75068c7c14cb9b5.zip
added and commented out some debug output
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 337879cb8..aa1cf4a70 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -940,6 +940,8 @@ void the_game(
while(device->run() && kill == false)
{
+ //std::cerr<<"frame"<<std::endl;
+
if(g_gamecallback->disconnect_requested)
{
g_gamecallback->disconnect_requested = false;
@@ -1221,6 +1223,19 @@ void the_game(
chat_lines.push_back(ChatLine(L"fast_move enabled"));
}
}
+ else if(input->wasKeyDown(getKeySetting("keymap_frametime_graph")))
+ {
+ if(g_settings.getBool("frametime_graph"))
+ {
+ g_settings.set("frametime_graph","false");
+ chat_lines.push_back(ChatLine(L"frametime_graph disabled"));
+ }
+ else
+ {
+ g_settings.set("frametime_graph","true");
+ chat_lines.push_back(ChatLine(L"frametime_graph enabled"));
+ }
+ }
// Item selection with mouse wheel
{