diff options
author | belugas <belugas@openttd.org> | 2007-03-22 03:42:43 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-03-22 03:42:43 +0000 |
commit | 691f8578fd4ea12c372534c367312ee7b8763c39 (patch) | |
tree | 7d05afaad21b690abc8c07d95e1f62206b11bccd /src/tgp.cpp | |
parent | 829822768516b017f1962e08ce14b0586575c92f (diff) | |
download | openttd-691f8578fd4ea12c372534c367312ee7b8763c39.tar.xz |
(svn r9400) -Codechange: Use some more representative enum names for landscape types.
Diffstat (limited to 'src/tgp.cpp')
-rw-r--r-- | src/tgp.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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 */ |