Project

General

Profile

Bug #1474 » 0019-Fix-assignment-of-unowned-tiles.patch

S3_1 - Marko Lindqvist, 05/29/2025 02:06 PM

View differences:

common/map.h
extern const int DIR_DY[8];
/* Used for network transmission; do not change. */
#define MAP_TILE_OWNER_NULL MAX_UINT8
#define MAP_TILE_OWNER_NULL MAX_UINT16
#define MAP_DEFAULT_HUTS 15
#define MAP_MIN_HUTS 0
fc_version
# - No new mandatory capabilities can be added to the release branch; doing
# so would break network capability of supposedly "compatible" releases.
#
NETWORK_CAPSTRING="+Freeciv-3.1-network city-original rsdesc32 obsinv ids32"
NETWORK_CAPSTRING="+Freeciv-3.1-network city-original rsdesc32 obsinv ids32 ownernull16"
FREECIV_DISTRIBUTOR=""
if test "x$FREECIV_LABEL_FORCE" != "x" ; then
server/edithand.c
return;
}
if (eowner != MAP_TILE_OWNER_NULL) {
if (eowner != MAP_TILE_OWNER_NULL
&& (eowner != MAX_UINT8
|| has_capability("ownernull16", pc->capability))) {
plr_eowner = player_by_number(eowner);
} else {
plr_eowner = NULL;
......
return;
}
if (packet->eowner != MAP_TILE_OWNER_NULL) {
if (packet->eowner != MAP_TILE_OWNER_NULL
&& (packet->eowner != MAX_UINT8
|| has_capability("ownernull16", pc->capability))) {
eowner = player_by_number(packet->eowner);
} else {
eowner = NULL;
(3-3/5)