summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2011-09-21 01:42:52 +0200
committerKahrl <kahrl@gmx.net>2011-09-21 01:42:52 +0200
commit36af9bb027ed6846227282587e3414ea3d30f6c5 (patch)
tree1c9aed78e1ce2899ae6c7997989be86a376d2582 /src/game.cpp
parent6599002149f58c03b807cd1378ec17278dbdc09d (diff)
downloadminetest-36af9bb027ed6846227282587e3414ea3d30f6c5.tar.gz
minetest-36af9bb027ed6846227282587e3414ea3d30f6c5.tar.bz2
minetest-36af9bb027ed6846227282587e3414ea3d30f6c5.zip
Create a separate scene manager for the wielded tool. This fixes the glitchyness in large map coordinates and some depth buffer problems. (The tool doesn't bob anymore when walking, this will be fixed later.) Fix MSVC build (thanks to dannydark).
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 08bc6f176..a99662651 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -2162,6 +2162,14 @@ void the_game(
}
/*
+ Wielded tool
+ */
+ {
+ // Warning: This clears the Z buffer.
+ camera.drawWieldedTool();
+ }
+
+ /*
Post effects
*/
{