Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2004:
[Freeciv-Dev] Re: (PR#10459) bug: pplayer_can_ally assert fail
Home

[Freeciv-Dev] Re: (PR#10459) bug: pplayer_can_ally assert fail

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: bagpipe@xxxxxxxxx, bh@xxxxxxxxxxxxxxxxxxx, jorneg@xxxxxxxxxxx, marko.lindqvist@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#10459) bug: pplayer_can_ally assert fail
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Mon, 18 Oct 2004 11:14:04 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10459 >

On Mon, 18 Oct 2004, Jason Short wrote:
> Hmm. Perhaps this is complicated.  What kinds of situations would we
> actually be checking the diplomatic states of dead players, and care
> what result we got?
>
> What about this patch?It causes pplayers_allied, pplayers_at_war,
> pplayers_at_peace to all return false for dead players.

Oh my. There are assumptions about the return values of these functions
all over the codebase.

Maybe we should just insert assert(pplayer->is_alive &&
pplayer2->is_alive) in these functions, and catch all erronous callers?

  - Per




[Prev in Thread] Current Thread [Next in Thread]