From: Perttu Ahola Date: Sun, 27 Nov 2011 03:08:44 +0000 (+0200) Subject: Fix and tune player movement checks (make them very loose) X-Git-Tag: 0.4.dev-20111201-0~61 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=218b62601698c5282487819ca7d0762c1c006103;p=oweals%2Fminetest.git Fix and tune player movement checks (make them very loose) --- diff --git a/src/server.cpp b/src/server.cpp index 66cc099e3..1d0b747bf 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -1320,8 +1320,8 @@ void Server::AsyncRunStep() float player_max_speed = BS * 20; // Fast speed float player_max_speed_up = BS * 20; - player_max_speed *= 1.7; // Tolerance - player_max_speed_up *= 1.7; + player_max_speed *= 2.5; // Tolerance + player_max_speed_up *= 2.5; for(core::map::Iterator i = m_clients.getIterator(); @@ -2535,9 +2535,10 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id) /* Check that target is reasonably close */ + if(action != 2) // action 2 has always position (0,0,0) { v3f np_f = intToFloat(p_under, BS); - float max_d = BS * 8; // Just some large enough value + float max_d = BS * 10; // Just some large enough value float d = srp->m_last_good_position.getDistanceFrom(np_f); if(d > max_d){ actionstream<<"Player "<getName()