[Removed] Removed some debug stuff.

This commit is contained in:
Allanis 2014-04-11 21:20:37 +01:00
parent 678c4d4b51
commit 38a0328d66

View File

@ -411,6 +411,7 @@ int economy_update(unsigned int dt) {
WARN("Failed to solve the Economy System."); WARN("Failed to solve the Economy System.");
/* Get the minimum and maximum to scale. */ /* Get the minimum and maximum to scale. */
/*
min = +HUGE_VALF; min = +HUGE_VALF;
max = -HUGE_VALF; max = -HUGE_VALF;
for(i = 0; i < systems_nstack; i++) { for(i = 0; i < systems_nstack; i++) {
@ -419,14 +420,15 @@ int economy_update(unsigned int dt) {
if(X[i] > max) if(X[i] > max)
max = X[i]; 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 * 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 * much more work to get a sane system working without the need of post
* filtering. * filtering.
*/ */
/*scale = 1. / (max - min);
offset = 0.5 - min * scale;*/
scale = 1.; scale = 1.;
offset = 1.; offset = 1.;
for(i = 0; i < systems_nstack; i++) { for(i = 0; i < systems_nstack; i++) {