Project

General

Profile

Bug #675 ยป 0090-Consistently-send-player-s-unknown-government-as-gov.patch

Marko Lindqvist, 05/23/2024 08:39 PM

View differences:

client/packhand.c
pplayer->economic.science = pinfo->science;
pplayer->economic.luxury = pinfo->luxury;
pplayer->client.tech_upkeep = pinfo->tech_upkeep;
gov_change = (!new_player && pgov != pplayer->government);
gov_change = (!new_player && pgov != pplayer->government
&& pplayer->government != NULL);
pplayer->government = pgov;
pplayer->target_government = ptarget_gov;
pplayer->real_embassy = pinfo->real_embassy;
server/plrhand.c
pgov = government_of_player(plr);
} else {
packet->gold = 0;
pgov = game.government_during_revolution;
pgov = NULL;
}
packet->government = pgov ? government_number(pgov) : government_count();
......
BV_CLR_ALL(cplayer->real_embassy); /* All embassies destroyed */
research_update(new_research);
/* Do the ai */
/* Do the AI */
set_as_ai(cplayer);
cplayer->ai_common.maxbuycost = pplayer->ai_common.maxbuycost;
cplayer->ai_common.warmth = pplayer->ai_common.warmth;
    (1-1/1)