summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-02-14 02:54:15 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-02-14 02:54:15 +0200
commit14fafc72177fdc77bf8c8955363c77719f74e33b (patch)
treeff5e70feac29944b1a5acb1aa3d5ba7425d37e8c /src/main.cpp
parent0947c4cc48ec9aed0a831973e7e79f8d57d34bc3 (diff)
downloadminetest-14fafc72177fdc77bf8c8955363c77719f74e33b.tar.gz
minetest-14fafc72177fdc77bf8c8955363c77719f74e33b.tar.bz2
minetest-14fafc72177fdc77bf8c8955363c77719f74e33b.zip
added sneaking/crouching and changelog
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e82dc68fc..139990773 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -78,6 +78,7 @@ SUGG: Split MapBlockObject serialization to to-client and to-disk
SUGG: MovingObject::move and Player::move are basically the same.
combine them.
+ - NOTE: Player::move is more up-to-date.
SUGG: Precalculate lighting translation table at runtime (at startup)
- This is not doable because it is currently hand-made and not
@@ -2261,6 +2262,7 @@ int main(int argc, char *argv[])
bool a_right,
bool a_jump,
bool a_superspeed,
+ bool a_sneak,
float a_pitch,
float a_yaw*/
PlayerControl control(
@@ -2270,6 +2272,8 @@ int main(int argc, char *argv[])
g_input->isKeyDown(irr::KEY_KEY_D),
g_input->isKeyDown(irr::KEY_SPACE),
g_input->isKeyDown(irr::KEY_KEY_E),
+ g_input->isKeyDown(irr::KEY_LSHIFT)
+ || g_input->isKeyDown(irr::KEY_RSHIFT),
camera_pitch,
camera_yaw
);