Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2004:
[Freeciv-Dev] (PR#8975) Bug: cm clear_cache() called before build_cache3
Home

[Freeciv-Dev] (PR#8975) Bug: cm clear_cache() called before build_cache3

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: use_less@xxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#8975) Bug: cm clear_cache() called before build_cache3()
From: "Benoit Hudson" <bh@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 27 Jul 2004 17:00:50 -0700
Reply-to: rt@xxxxxxxxxxx

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

> [jdorje - Mon Jun 14 03:51:37 2004]:
> Well this is ugly.  It assumes that if MAX_FIELDS_USED is 0 then there 
> is at least 1 item in the list.  That is, 0 means the set of {0}, with 1 
> element in it.

If MAX_FIELDS_USED == 0, then you can *still* use the tile the city is built 
on.  That is, we 
need be able to represent using 0 workers.

Really, MAX_FIELDS_USED should not be a constant or constant-like thing, but 
part of 
tile_stats or cache3.

By the way, clear_cache should often be called before build_cache3, so that's 
not a bug.  It's a 
bug if we crash on it.


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#8975) Bug: cm clear_cache() called before build_cache3(), Benoit Hudson <=