[Freeciv-Dev] suspicious code in road_bonus(int x, int y, int spc) (PR#2
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
suspicious code in road_bonus(int x, int y, int spc)
te[k] is not set.
/home/styx/st/dev/fc/freeciv-1.13.0/server/settlers.c:634
freeciv-1.13.0/server/barbarian.c:634:
if (is_border && !normalize_map_pos(&x1, &y1)) {
rd[k] = FALSE;
} else {
ptile = map_get_tile(x1, y1);
rd[k] = tile_has_special(ptile, spc);
te[k] = (ptile->terrain == T_MOUNTAINS || ptile->terrain == T_OCEAN);
correction:
if (is_border && !normalize_map_pos(&x1, &y1)) {
rd[k] = FALSE; te[k]=TRUE;
} else {
...
- [Freeciv-Dev] suspicious code in road_bonus(int x, int y, int spc) (PR#2144),
STyx <=
|
|