summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2015-07-11 11:18:24 +0000
committerfrosch <frosch@openttd.org>2015-07-11 11:18:24 +0000
commitbe0b22c9bc08a0a267f6020f2e97845f9b90c482 (patch)
tree0a973e3a034cbaa30785865c9eb1599be7776efe
parenta11ae39437ccc7a62221b5fa1087c044a9b327bd (diff)
downloadopenttd-be0b22c9bc08a0a267f6020f2e97845f9b90c482.tar.xz
(svn r27331) -Cleanup (r26999): Make variety distribution curves more sane.
-rw-r--r--src/tgp.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tgp.cpp b/src/tgp.cpp
index 3cfbe4951..1e736c638 100644
--- a/src/tgp.cpp
+++ b/src/tgp.cpp
@@ -582,10 +582,10 @@ static void HeightMapCurves(uint level)
};
/* Scaled curve maps; value is in height_ts. */
#define F(fraction) ((height_t)(fraction * mh))
- const control_point_t curve_map_1[] = { { F(0.0), F(0.0) }, { F(2.4 / 3), F(0.4 / 3) }, { F(1.0), F(0.4) } };
- const control_point_t curve_map_2[] = { { F(0.0), F(0.0) }, { F(1.6 / 3), F(0.4 / 3) }, { F(2.4 / 3), F(0.8 / 3) }, { F(1.0), F(0.6) } };
- const control_point_t curve_map_3[] = { { F(0.0), F(0.0) }, { F(1.6 / 3), F(0.8 / 3) }, { F(2.4 / 3), F(1.8 / 3) }, { F(1.0), F(0.8) } };
- const control_point_t curve_map_4[] = { { F(0.0), F(0.0) }, { F(1.2 / 3), F(0.9 / 3) }, { F(2.0 / 3), F(2.4 / 3) } , { F(5.5 / 6), F(0.99) }, { F(1.0), F(0.99) } };
+ const control_point_t curve_map_1[] = { { F(0.0), F(0.0) }, { F(0.8), F(0.13) }, { F(1.0), F(0.4) } };
+ const control_point_t curve_map_2[] = { { F(0.0), F(0.0) }, { F(0.53), F(0.13) }, { F(0.8), F(0.27) }, { F(1.0), F(0.6) } };
+ const control_point_t curve_map_3[] = { { F(0.0), F(0.0) }, { F(0.53), F(0.27) }, { F(0.8), F(0.57) }, { F(1.0), F(0.8) } };
+ const control_point_t curve_map_4[] = { { F(0.0), F(0.0) }, { F(0.4), F(0.3) }, { F(0.7), F(0.8) }, { F(0.92), F(0.99) }, { F(1.0), F(0.99) } };
#undef F
/** Helper structure to index the different curve maps. */