Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2000:
[Freeciv-Dev] tiny patch towards terrain dishardwirening
Home

[Freeciv-Dev] tiny patch towards terrain dishardwirening

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv Developement mailing list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] tiny patch towards terrain dishardwirening
From: Tomasz Wegrzanowski <maniek@xxxxxxxx>
Date: Sat, 17 Jun 2000 20:14:45 +0200

Patch introduces two functions to common/map.[hc]

First is : is_ocean (x,y)
Second is : is_land (x,y)

They says if terrain is ok for sea / land units to be as-is
(w/o transporters or cities)

1)
When dishardwiring terrain types, much work would be land/ocean problem.
Changing (t==T_OCEAN) to (terrain_flags(t)&TF_OCEAN) in one place is simpler

2)
if we will introduce posibility that both land and sea units can
be on te same tile type (T_FJORD, even T_RIVER etc.), having function
`is_land(x,y)' instead of `!is_ocean(x,y)' will help.

Attachment: is_ocean.diff
Description: Text document


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] tiny patch towards terrain dishardwirening, Tomasz Wegrzanowski <=