From 13159c1a48690d4ede3dbabc7699ea3d49072860 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 31 Mar 2012 17:08:39 +0300 Subject: Add server-side enforcement of the 'fast' privilege; also fix client checking 'fly' instead of 'fast' --- src/localplayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/localplayer.cpp') diff --git a/src/localplayer.cpp b/src/localplayer.cpp index bbe447a6c..9ee088a9f 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -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"); -- cgit v1.2.3