summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-04-24 11:41:33 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-04-24 11:41:33 +0300
commit8c1f7a0dd27782cfc85dce624ccc4e3276f18776 (patch)
tree125fb1c4893d25a9cdabff23812de59bfef36b0d /src/game.cpp
parent83414e8b73ffd651c84c7ed8f8c1200cf9e8aec7 (diff)
downloadminetest-8c1f7a0dd27782cfc85dce624ccc4e3276f18776.tar.xz
Added a simple software "ambient occlusion" effect, like minecraft's "smooth lighting"
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game.cpp b/src/game.cpp
index c806034f2..7eb847e6c 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -26,6 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "guiTextInputMenu.h"
#include "guiFurnaceMenu.h"
#include "materials.h"
+#include "config.h"
/*
Setting this to 1 enables a special camera mode that forces
@@ -1708,13 +1709,12 @@ void the_game(
endscenetime_avg = endscenetime_avg * 0.95 + (float)endscenetime*0.05;
char temptext[300];
- snprintf(temptext, 300, "Minetest-c55 ("
- "F: item=%i"
- ", R: range_all=%i"
+ snprintf(temptext, 300, "Minetest-c55 %s ("
+ "R: range_all=%i"
")"
" drawtime=%.0f, beginscenetime=%.0f"
", scenetime=%.0f, endscenetime=%.0f",
- g_selected_item,
+ VERSION_STRING,
draw_control.range_all,
drawtime_avg,
beginscenetime_avg,