Announcement

Collapse
No announcement yet.

Lost Place In Code.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Lost Place In Code.

    Hi,

    Can any one tell me where in the freeciv code does it smooth out the map so that the coast is all correctly laid out and that the different terrain blends smoothly into each other.

    Cheers.
    James.

  • #2
    All the map creation code is in mapgen.c

    I suspect the function is the appropriately named smooth_map() which begins near line 1350.
    Andy Black

    Comment


    • #3
      For the isometric map:

      Blending of normal tiles from client/gui-*/mapview.c

      /************************************************** ************************
      Blend the tile with neighboring tiles.
      Only used for isometric view.
      ************************************************** ************************/
      static void dither_tile

      Coasts are drawn by fitting the rigth sprites together. These are chosen in fill_tile_sprite_array_iso in client/tilespec.c and drawn in pixmap_put_tile_iso in mapview.c

      For the non-isometric map:
      this is done by fitting tiles together appropriately. See fill_tile_sprite_array in client/tilespec.c
      http://www.hardware-wiki.com - A wiki about computers, with focus on Linux support.

      Comment

      Working...
      X