Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] (PR#10295) crazy code in citymap
Home

[Freeciv-Dev] (PR#10295) crazy code in citymap

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#10295) crazy code in citymap
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 23 Sep 2004 22:50:31 -0700
Reply-to: rt@xxxxxxxxxxx

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

In citymap.c and citymap.h:

1.  The citymap array is itself way bigger than needed.  LIke all other 
map arrays it should be indexed by index.

2.  This code in citymap.c:67

           citymap[ptile->index] = citymap[ptile->index]++;

is surely very wrong.

3. In citymap.c:73 it looks like it's never checked whether the goto 
dest is set.  But this would cause an assertion if it weren't true.  So 
I'm confused.

That's about it.

jason




[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#10295) crazy code in citymap, Jason Short <=