Cleanup uses of SWAP macro (#8051)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user