<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40501 >
$subject Border/vision handling (especially that of Fortresses) remains broken mess even with this fix. Maybe it should be completely rewritten, but I don't have time for that. - ML
diff -Nurd -X.diff_ignore freeciv/server/unittools.c freeciv/server/unittools.c --- freeciv/server/unittools.c 2008-09-08 21:39:02.000000000 +0300 +++ freeciv/server/unittools.c 2008-09-09 02:18:32.000000000 +0300 @@ -730,6 +730,10 @@ if (what != S_LAST) { if (what == S_PILLAGE_BASE) { + if (base_has_flag(first_base, BF_CLAIM_TERRITORY)) { + map_clear_border(ptile, ptile->owner); + map_claim_ownership(ptile, NULL, NULL); + } tile_remove_base(ptile, first_base); } else { tile_clear_special(ptile, what); @@ -797,6 +801,7 @@ if (!can_bases_coexist(old_base, new_base)) { if (base_has_flag(old_base, BF_CLAIM_TERRITORY)) { map_clear_border(ptile, ptile->owner); + map_claim_ownership(ptile, NULL, NULL); } tile_remove_base(ptile, old_base); }
_______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev