Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2004:
[Freeciv-Dev] Re: (PR#9869) Bug: DDEBUG changes savegames
Home

[Freeciv-Dev] Re: (PR#9869) Bug: DDEBUG changes savegames

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#9869) Bug: DDEBUG changes savegames
From: "Gregory Berkolaiko" <Gregory.Berkolaiko@xxxxxxxxxxxxx>
Date: Tue, 31 Aug 2004 09:35:37 -0700
Reply-to: rt@xxxxxxxxxxx

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

On Mon, 30 Aug 2004, Jason Short wrote:

> <URL: http://rt.freeciv.org/Ticket/Display.html?id=9869 >
> 
> This actually is a significant bug.  Not only is DEBUG behavior changed
> because of the extra evaluation, but the myrand() call is also passed
> into index_to_native_pos which itself evaluates the argument two times.
>  So the X and Y values found depend on different indices as returned by
> myrand().  Harmless but quite not good.

So I wrote in the original email.  Any of the two fixes will fix it of 
course.

G.





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