From 691f8578fd4ea12c372534c367312ee7b8763c39 Mon Sep 17 00:00:00 2001 From: belugas Date: Thu, 22 Mar 2007 03:42:43 +0000 Subject: (svn r9400) -Codechange: Use some more representative enum names for landscape types. --- src/tgp.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/tgp.cpp') diff --git a/src/tgp.cpp b/src/tgp.cpp index addc3d16f..cfdb037ff 100644 --- a/src/tgp.cpp +++ b/src/tgp.cpp @@ -398,8 +398,8 @@ static void HeightMapSineTransform(height_t h_min, height_t h_max) fheight = (double)(*h - h_min) / (double)(h_max - h_min); /* Apply sine transform depending on landscape type */ switch(_opt.landscape) { - case LT_CANDY: - case LT_NORMAL: + case LT_TOYLAND: + case LT_TEMPERATE: /* Move and scale 0..1 into -1..+1 */ fheight = 2 * fheight - 1; /* Sine transform */ @@ -408,7 +408,7 @@ static void HeightMapSineTransform(height_t h_min, height_t h_max) fheight = 0.5 * (fheight + 1); break; - case LT_HILLY: + case LT_ARCTIC: { /* Arctic terrain needs special height distribution. * Redistribute heights to have more tiles at highest (75%..100%) range */ @@ -429,7 +429,7 @@ static void HeightMapSineTransform(height_t h_min, height_t h_max) } break; - case LT_DESERT: + case LT_TROPIC: { /* Desert terrain needs special height distribution. * Half of tiles should be at lowest (0..25%) heights */ -- cgit v1.2.3-70-g09d2