Project

General

Profile

Bug #1067 » 0024-Correct-client-knowledge-about-original-city-owner.patch

S3_1 - Marko Lindqvist, 11/08/2024 09:44 PM

View differences:

client/packhand.c
pcity->tile = pcenter;
ptile = pcenter;
pcity->owner = powner;
if (has_capability("city-original", client.conn.capability)) {
pcity->original = player_by_number(packet->original);
} else {
pcity->original = NULL;
}
} else if (city_owner(pcity) != powner) {
/* Remember what were the worked tiles. The server won't
* send them to us again. */
......
city_name_set(pcity, packet->name);
}
if (has_capability("city-original", client.conn.capability)) {
pcity->original = player_by_number(packet->original);
} else {
pcity->original = NULL;
}
/* Check data */
city_size_set(pcity, 0);
for (i = 0; i < FEELING_LAST; i++) {
(2-2/2)