Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2004:
[Freeciv-Dev] (PR#7408) unit_list_size(&ptile->units) == 0 Again (Sea ba
Home

[Freeciv-Dev] (PR#7408) unit_list_size(&ptile->units) == 0 Again (Sea ba

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#7408) unit_list_size(&ptile->units) == 0 Again (Sea barbarians)
From: "mateusz stefek" <matusik_s@xxxxx>
Date: Tue, 17 Feb 2004 00:34:32 -0800
Reply-to: rt@xxxxxxxxxxx

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

On 2004.02.14 19:03, Jason Short wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=7408 >
[...] 
> > I found some stupid bug in try_summon_barbarians()
> > Patch attached. Unfortunatelly problem is much more complicated. In
> > this case xu = x and yu = y so the patch doesn't change anything.
> 
> I don't think this is correct.  (xu,yu) is not the same as (x,y).   
> Unleash_barbarians is called when a player enters a hut.  The hut is at
> (x,y) and the barbarians are unleashed at adjacent positions (xu,yu).
> 
But we are talking about try_summon_barbarians(). It randomly chooses (x, y). 
Then finds empty tile nearby (xu, yu) and creates barbarians there. I don't 
know why it does it that way. But I'm sure that it is possible that there is a 
hut at (xu, yu)

--
mateusz





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