mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 11:53:56 +00:00
work around a weird MSVC6 linking error
This commit is contained in:
parent
3d6d13a354
commit
28baec53af
@ -310,7 +310,7 @@ std::vector<gamemap::location> get_tiles(const gamemap &map,
|
||||
unsigned int i;
|
||||
// Get the starting point.
|
||||
for (i = 1; i <= d; i++) {
|
||||
loc = loc.get_direction(gamemap::location::NORTH);
|
||||
loc = loc.get_direction(gamemap::location::NORTH, 1);
|
||||
}
|
||||
// Get all the tiles clockwise with distance d.
|
||||
const gamemap::location::DIRECTION direction[6] =
|
||||
@ -318,7 +318,7 @@ std::vector<gamemap::location> get_tiles(const gamemap &map,
|
||||
gamemap::location::NORTH_WEST, gamemap::location::NORTH, gamemap::location::NORTH_EAST};
|
||||
for (i = 0; i < 6; i++) {
|
||||
for (unsigned int j = 1; j <= d; j++) {
|
||||
loc = loc.get_direction(direction[i]);
|
||||
loc = loc.get_direction(direction[i], 1);
|
||||
if (map.on_board(loc)) {
|
||||
res.push_back(loc);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user