From 7c0f1b797f79e872f3b5672ceba14633c6b00d07 Mon Sep 17 00:00:00 2001 From: "Marius \"Teelevision\" Neugebauer" Date: Wed, 2 Apr 2014 20:53:06 +0200 Subject: fix distance check in spam protection --- src/game/server/entity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/server/entity.cpp b/src/game/server/entity.cpp index e1985877..3fae22f2 100644 --- a/src/game/server/entity.cpp +++ b/src/game/server/entity.cpp @@ -60,6 +60,6 @@ void CEntity::SetCharactersNearby() CCharacter *c; for(int i = 0; i < MAX_CLIENTS; ++i) if((c = GameServer()->GetPlayerChar(i))) - m_CharactersNearby[i] = (absolute(c->m_Pos.x - m_Pos.x) <= 9000.0f && absolute(c->m_Pos.y - m_Pos.y) <= 700.0f && distance(c->m_Pos, m_Pos) <= 900.0f); + m_CharactersNearby[i] = (absolute(c->m_Pos.x - m_Pos.x) <= 900.0f && absolute(c->m_Pos.y - m_Pos.y) <= 700.0f && distance(c->m_Pos, m_Pos) <= 900.0f); m_CharactersNearbyInitialized = true; } -- cgit 1.4.1