|
|
|
|
@ -222,8 +222,7 @@ static void sync_monster(int pnum, const TSyncMonster *p)
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Point md = abs(monster[ndx].position.tile - Point { p->_mx, p->_my }); |
|
|
|
|
if (md.x <= 2 && md.y <= 2) { |
|
|
|
|
if (monster[ndx].position.tile.WalkingDistance({ p->_mx, p->_my }) <= 2) { |
|
|
|
|
if (monster[ndx]._mmode < MM_WALK || monster[ndx]._mmode > MM_WALK3) { |
|
|
|
|
Direction md = GetDirection(monster[ndx].position.tile, { p->_mx, p->_my }); |
|
|
|
|
if (DirOK(ndx, md)) { |
|
|
|
|
|