mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 17:30:46 +00:00
An awful typo. Thanks to GCC4 for pointing it out.
The castle ranking on random map was then completely flawed.
This commit is contained in:
parent
60322069b6
commit
8932895b3c
@ -425,7 +425,7 @@ int rank_castle_location(int x, int y, const is_valid_terrain& valid_terrain, in
|
|||||||
}
|
}
|
||||||
|
|
||||||
const int x_from_border = minimum<int>(x - min_x,max_x - x);
|
const int x_from_border = minimum<int>(x - min_x,max_x - x);
|
||||||
const int y_from_border = minimum<int>(y = min_y,max_y - y);
|
const int y_from_border = minimum<int>(y - min_y,max_y - y);
|
||||||
|
|
||||||
const int border_ranking = min_distance - minimum<int>(x_from_border,y_from_border) +
|
const int border_ranking = min_distance - minimum<int>(x_from_border,y_from_border) +
|
||||||
min_distance - x_from_border - y_from_border;
|
min_distance - x_from_border - y_from_border;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user