Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2004:
[Freeciv-Dev] (PR#9799) PATCH: rewrited adjust_map()
Home

[Freeciv-Dev] (PR#9799) PATCH: rewrited adjust_map()

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: mburda@xxxxxxxxx
Subject: [Freeciv-Dev] (PR#9799) PATCH: rewrited adjust_map()
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Tue, 31 Aug 2004 07:11:33 -0700
Reply-to: rt@xxxxxxxxxxx

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

> [mburda - Tue Aug 31 13:03:34 2004]:
 
+  for(i =  -1; (++i) < maxval;) {

there's a simpler form:
for (i = 0; i < maxval; i++) {
}


+  /* apply the linearize function */
+  whole_map_iterate(x, y) {
+    hmap(x, y) = frequencies[hmap(x, y)];
+  } whole_map_iterate_end; 

Are you sure that hmap(x, y) is < maxval ?. I'm not

--
mateusz


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