Bug #1708 » 0016-Fix-crash-on-nations-dialog-for-R.I.P.-player-govern.patch
| client/plrdlg_common.c | ||
|---|---|---|
|
const struct player *me = client_player();
|
||
|
/* 'contact' gives the knowledge of other's government */
|
||
|
if (me == them
|
||
|
if (!them->is_alive) {
|
||
|
fc_snprintf(buf, sizeof(buf), "-");
|
||
|
} else if (me == them
|
||
|
|| client_is_global_observer()
|
||
|
|| team_has_embassy(me->team, them)
|
||
|
|| player_diplstate_get(me, them)->contact_turns_left > 0 ) {
|
||
|
fc_snprintf(buf, sizeof(buf),"%s", government_name_for_player(them));
|
||
|
fc_snprintf(buf, sizeof(buf), "%s", government_name_for_player(them));
|
||
|
} else {
|
||
|
fc_snprintf(buf, sizeof(buf),"?");
|
||
|
fc_snprintf(buf, sizeof(buf), "?");
|
||
|
}
|
||
|
return buf;
|
||