diff options
| author | Marius "Teelevision" Neugebauer <marius@teele.eu> | 2014-04-02 20:53:06 +0200 |
|---|---|---|
| committer | Marius "Teelevision" Neugebauer <marius@teele.eu> | 2014-04-02 20:53:06 +0200 |
| commit | 7c0f1b797f79e872f3b5672ceba14633c6b00d07 (patch) | |
| tree | d9678a49379434f7c37a8f70e65a067fe8b02fc2 /src/game | |
| parent | c207f70e19fa4cc9389f547b1bf5470634fa2af1 (diff) | |
| download | zcatch-7c0f1b797f79e872f3b5672ceba14633c6b00d07.tar.gz zcatch-7c0f1b797f79e872f3b5672ceba14633c6b00d07.zip | |
fix distance check in spam protection
Diffstat (limited to 'src/game')
| -rw-r--r-- | src/game/server/entity.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |