Complete.Org: Mailing Lists: Archives: freeciv-dev: March 1999:
[Freeciv-Dev] Bug: can't build Hoover Dam on river
Home

[Freeciv-Dev] Bug: can't build Hoover Dam on river

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Bug: can't build Hoover Dam on river
From: Patrick Smith <patsmith@xxxxxxxxx>
Date: Sun, 14 Mar 1999 07:11:27 +0000

The help information for the Hoover Dam says it "can only be built in a
city
which is next to (or on) a Mountain or River tile".

But in fact the code only allows you to build it on a city which is next
to
such a tile; the tile the city itself is on is irrelevant.

So, for example, if you have a city built on a river tile, but with no
neighbouring river or mountain tiles, then you can't build the Hoover
Dam
there.

The function could_build_improvement (in common/city.c) calls
is_terrain_near_tile to check whether the city is near the appropriate
terrain.  But is_terrain_near_tile (in common/map.c) only checks the
tiles
around the tile it is given, and does not check the central tile itself.
-- 
patsmith@xxxxxxxxx

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Bug: can't build Hoover Dam on river, Patrick Smith <=