diff --git a/src/economy.c b/src/economy.c index 8a9fd95..9a8f286 100644 --- a/src/economy.c +++ b/src/economy.c @@ -411,6 +411,7 @@ int economy_update(unsigned int dt) { WARN("Failed to solve the Economy System."); /* Get the minimum and maximum to scale. */ + /* min = +HUGE_VALF; max = -HUGE_VALF; for(i = 0; i < systems_nstack; i++) { @@ -419,14 +420,15 @@ int economy_update(unsigned int dt) { if(X[i] > max) max = X[i]; } + scale = 1. / (max - min); + offset = 0.5 - min * scale; + */ /* * I'm not sure I like the filtering of the results, but it would take * much more work to get a sane system working without the need of post * filtering. */ - /*scale = 1. / (max - min); - offset = 0.5 - min * scale;*/ scale = 1.; offset = 1.; for(i = 0; i < systems_nstack; i++) {