1
0
mirror of https://github.com/minetest/minetest.git synced 2025-07-03 08:20:23 +02:00

Zoom: Move enabling zoom to a new player object property

Default enabled for no change in default behaviour.
Remove 'zoom' privilege.
This commit is contained in:
paramat
2017-08-28 22:46:12 +01:00
committed by paramat
parent bd6b90359c
commit 561a01cc2a
8 changed files with 20 additions and 11 deletions

View File

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