summaryrefslogtreecommitdiff
path: root/src/content_sao.cpp
diff options
context:
space:
mode:
authorparamat <paramat@users.noreply.github.com>2017-08-28 22:46:12 +0100
committerparamat <mat.gregory@virginmedia.com>2017-08-30 19:39:05 +0100
commit561a01cc2a8ca0b83b37975a048d34dcfd0d41e1 (patch)
treeeed4bfe89f439e4c0573b76e0c670ff0267c1cdc /src/content_sao.cpp
parentbd6b90359c654f4c75964755e476a8bfd90114ba (diff)
downloadminetest-561a01cc2a8ca0b83b37975a048d34dcfd0d41e1.tar.gz
minetest-561a01cc2a8ca0b83b37975a048d34dcfd0d41e1.tar.bz2
minetest-561a01cc2a8ca0b83b37975a048d34dcfd0d41e1.zip
Zoom: Move enabling zoom to a new player object property
Default enabled for no change in default behaviour. Remove 'zoom' privilege.
Diffstat (limited to 'src/content_sao.cpp')
-rw-r--r--src/content_sao.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/content_sao.cpp b/src/content_sao.cpp
index 4debc354f..c264473af 100644
--- a/src/content_sao.cpp
+++ b/src/content_sao.cpp
@@ -801,6 +801,7 @@ PlayerSAO::PlayerSAO(ServerEnvironment *env_, RemotePlayer *player_, u16 peer_id
m_prop.is_visible = true;
m_prop.makes_footstep_sound = true;
m_prop.stepheight = PLAYER_DEFAULT_STEPHEIGHT * BS;
+ m_prop.can_zoom = true;
m_hp = m_prop.hp_max;
}