Skip to content


Revert "Add a define for SMALL_CLIFFS."
Browse files Browse the repository at this point in the history
This reverts commit 1864dce.

Source comments were wrong, this not only has a impact on cliffs, it
also controls water as well.
  • Loading branch information
buginator committed Nov 26, 2010
1 parent eea0d02 commit 663bc6d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/map.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,6 @@ MAPTILE *psMapTiles = NULL;

#define WATER_DEPTH 180

// Enable the below define to render cliffs that are small, and otherwise wouldn't show up.
//#define SMALL_CLIFFS

static void SetGroundForTile(const char *filename, const char *nametype);
static int getTextureType(const char *textureType);
static BOOL hasDecals(int i, int j);
Expand Down Expand Up @@ -608,8 +605,9 @@ static int determineGroundType(int x, int y, const char *tileset)

votes[i][j] = 0;

// cliffs are so small they won't show up otherwise
// This controls the way cliffs look, and also plays a role with water
// FIXME: The current way this is done, we don't have control over how well defined the area
// in question behaves. You lose definition between what is passable and what is impassable.
if (urban)
if (ground[i][j] == getTextureType("u_cliff"))
Expand All @@ -625,7 +623,6 @@ static int determineGroundType(int x, int y, const char *tileset)
if (ground[i][j] == getTextureType("r_cliff"))
return ground[i][j];

Expand Down

0 comments on commit 663bc6d

Please sign in to comment.