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

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

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gregory.Berkolaiko@xxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#9869) Bug: DDEBUG changes savegames
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 30 Aug 2004 22:45:10 -0700
Reply-to: rt@xxxxxxxxxxx

<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.

jason



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