- if ($2 < 0 || $2 > (int)max_x_map)
- lc_error("Region (%li,%li,%li,%li) out of map range (x1)!", $2, $4, $6, $8);
- else if ($4 < 0 || $4 > (int)max_y_map)
- lc_error("Region (%li,%li,%li,%li) out of map range (y1)!", $2, $4, $6, $8);
- else if ($6 < 0 || $6 > (int)max_x_map)
- lc_error("Region (%li,%li,%li,%li) out of map range (x2)!", $2, $4, $6, $8);
- else if ($8 < 0 || $8 > (int)max_y_map)
- lc_error("Region (%li,%li,%li,%li) out of map range (y2)!", $2, $4, $6, $8);
+ if ($2 < 0 || $2 > (int) max_x_map)
+ lc_error(
+ "Region (%ld,%ld,%ld,%ld) out of map range (x1)!",
+ $2, $4, $6, $8);
+ else if ($4 < 0 || $4 > (int) max_y_map)
+ lc_error(
+ "Region (%ld,%ld,%ld,%ld) out of map range (y1)!",
+ $2, $4, $6, $8);
+ else if ($6 < 0 || $6 > (int) max_x_map)
+ lc_error(
+ "Region (%ld,%ld,%ld,%ld) out of map range (x2)!",
+ $2, $4, $6, $8);
+ else if ($8 < 0 || $8 > (int) max_y_map)
+ lc_error(
+ "Region (%ld,%ld,%ld,%ld) out of map range (y2)!",
+ $2, $4, $6, $8);