diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-08-02 15:50:26 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-08-02 15:50:26 -0300 |
commit | 52592e01511cb86c1f0f545be52c340d190546ec (patch) | |
tree | d1bbed12ae1d3ef2e0c3865d2a3940092db49713 /src/map/battle.c | |
parent | ecd7e57bec8bd85c6121004ec88376d7c7138d30 (diff) | |
download | hercules-52592e01511cb86c1f0f545be52c340d190546ec.tar.gz hercules-52592e01511cb86c1f0f545be52c340d190546ec.tar.bz2 hercules-52592e01511cb86c1f0f545be52c340d190546ec.tar.xz hercules-52592e01511cb86c1f0f545be52c340d190546ec.zip |
[TMW2] Partly reverts b5a92f944f126e920442307bebd3c2b53c9b0d54
This should kill lag. Maybe. Definitely. Hopefully.
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 0567b245f..4b60ffb52 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -6967,12 +6967,14 @@ static bool battle_check_range(struct block_list *src, struct block_list *bl, in if( src->m != bl->m ) return false; +/* [TMW2] Code removed - ManaPlus deals with squares, not circles. #ifndef CIRCULAR_AREA if( src->type == BL_PC ) { // Range for players' attacks and skills should always have a circular check. [Angezerus] if ( !check_distance_client_bl(src, bl, range) ) return false; } else #endif +*/ if( !check_distance_bl(src, bl, range) ) return false; |