mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add server-side enforcement of the 'fast' privilege; also fix client checking 'fly' instead of 'fast'
This commit is contained in:
parent
0fbef74f31
commit
13159c1a48
4 changed files with 32 additions and 9 deletions
|
@ -496,7 +496,7 @@ void LocalPlayer::applyControl(float dtime)
|
|||
v3f speed = v3f(0,0,0);
|
||||
|
||||
bool fly_allowed = m_gamedef->checkLocalPrivilege("fly");
|
||||
bool fast_allowed = m_gamedef->checkLocalPrivilege("fly");
|
||||
bool fast_allowed = m_gamedef->checkLocalPrivilege("fast");
|
||||
|
||||
bool free_move = fly_allowed && g_settings->getBool("free_move");
|
||||
bool fast_move = fast_allowed && g_settings->getBool("fast_move");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue