[Removed] Removed some debug stuff.
This commit is contained in:
parent
678c4d4b51
commit
38a0328d66
@ -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++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user