1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

added sneaking/crouching and changelog

This commit is contained in:
Perttu Ahola 2011-02-14 02:54:15 +02:00
parent 0947c4cc48
commit 14fafc7217
8 changed files with 318 additions and 113 deletions

View file

@ -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
);