Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] Re: Dangerous danger2
Home

[Freeciv-Dev] Re: Dangerous danger2

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Paul Zastoupil <paulz@xxxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Dangerous danger2
From: Raahul Kumar <raahul_da_man@xxxxxxxxx>
Date: Thu, 18 Oct 2001 18:22:18 -0700 (PDT)

--- Paul Zastoupil <paulz@xxxxxxxxxxxx> wrote:
> I was playing out a long game (yes, I was actually playing a game of
> Freeciv) and I got a bunch of server spam:
> Dangerous danger2 (%d) in %s.  Beware of overflow.
> 
> Its from "ai/advmilitary.c" line 377 of 1101
> 
> int danger2 = 0; /* linear for walls */
> <lots of stuff>
> if (!igwall) danger2 += v * m / dist;
> <lots of stuff>
> if (!igwall) danger2 += v * m / dist;
> <lots of stuff>
> if (danger2 < 0 || danger2 > 1<<24) /* I hope never to see this! */
>   freelog(LOG_ERROR, "Dangerous danger2 (%d) in %s.  Beware of overflow.",
>   danger2, pcity->name);
> 

Post the save game to freeciv-dev. I'll have a look. But Ross Wetmore is
probably your best bet.

> 
> I didn't really research it much more than that (come on, I know better
> than to go digging in the AI code).  Anyone still alive that understands
> this code?
> 
> Save game is available upon request.
> 
> -- 
> Paul Zastoupil
> 


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com


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