Cleanup uses of SWAP macro (#8051)

This commit is contained in:
Vincent Stumpf
2023-12-27 02:36:46 -08:00
committed by GitHub
parent 82b36dc847
commit f2a3bad3e2
11 changed files with 56 additions and 76 deletions

View File

@@ -726,9 +726,9 @@ int mob_once_spawn_area(map_session_data* sd, int16 m, int16 x0, int16 y0, int16
// normalize x/y coordinates
if (x0 > x1)
SWAP(x0, x1);
std::swap(x0, x1);
if (y0 > y1)
SWAP(y0, y1);
std::swap(y0, y1);
// choose a suitable max. number of attempts
max = (y1 - y0 + 1)*(x1 - x0 + 1)*3;