Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2005:
[Freeciv-Dev] (PR#13655) don't allow huts in the ocean
Home

[Freeciv-Dev] (PR#13655) don't allow huts in the ocean

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#13655) don't allow huts in the ocean
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 11 Aug 2005 20:41:10 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13655 >

This patch prevents huts in the ocean.  When transforming land->ocean 
the hut is removed.  Currently this is impossible since the hut would 
have been explored but with editor features it is a necessary check.

I have no objections to having huts in the ocean, but this would have to 
be tested.

-jason

Index: common/tile.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/common/tile.c,v
retrieving revision 1.12
diff -p -u -r1.12 tile.c
--- common/tile.c       11 Aug 2005 17:26:27 -0000      1.12
+++ common/tile.c       12 Aug 2005 03:39:43 -0000
@@ -219,9 +219,9 @@ void tile_change_terrain(struct tile *pt
     tile_clear_infrastructure(ptile);
     tile_clear_dirtiness(ptile);
 
-    /* FIXME: When rest of code can handle
-     * rivers in oceans, then maybe we can leave it in place. */
+    /* The code can't handle these specials in ocean. */
     tile_clear_special(ptile, S_RIVER);
+    tile_clear_special(ptile, S_HUT);
   }
 
   /* Clear mining/irrigation if resulting terrain type cannot support

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#13655) don't allow huts in the ocean, Jason Short <=