diff options
author | Lars Müller <34514239+appgurueu@users.noreply.github.com> | 2020-06-13 22:46:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-13 22:46:20 +0200 |
commit | e7e065f553b430173e9112ad55c7046cfc02f2c5 (patch) | |
tree | ea144e57f6753da91a4acd2efb1839e864dc5627 /src/network | |
parent | 2424dfe007e451bb02f87884c2b272cf307d6e7c (diff) | |
download | minetest-e7e065f553b430173e9112ad55c7046cfc02f2c5.tar.gz minetest-e7e065f553b430173e9112ad55c7046cfc02f2c5.tar.bz2 minetest-e7e065f553b430173e9112ad55c7046cfc02f2c5.zip |
Exposing the zoom key to Lua API (#9903)
Co-authored-by: Raul Ferriz <raul.ferriz@gmail.com>
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/serverpackethandler.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/serverpackethandler.cpp b/src/network/serverpackethandler.cpp index fed3b6f85..b3008bb50 100644 --- a/src/network/serverpackethandler.cpp +++ b/src/network/serverpackethandler.cpp @@ -501,6 +501,7 @@ void Server::process_PlayerPos(RemotePlayer *player, PlayerSAO *playersao, player->control.sneak = (keyPressed & 64); player->control.LMB = (keyPressed & 128); player->control.RMB = (keyPressed & 256); + player->control.zoom = (keyPressed & 512); if (playersao->checkMovementCheat()) { // Call callbacks |