|
@ -484,6 +484,12 @@ void app:: zeroIvValues(bool checkAvail, bool skipYieldDay) { |
|
|
pos = iv->getPosByChFld(ch, fld, rec); |
|
|
pos = iv->getPosByChFld(ch, fld, rec); |
|
|
iv->setValue(pos, rec, 0.0f); |
|
|
iv->setValue(pos, rec, 0.0f); |
|
|
} |
|
|
} |
|
|
|
|
|
// zero max power
|
|
|
|
|
|
if(!skipYieldDay) { |
|
|
|
|
|
pos = iv->getPosByChFld(ch, FLD_MP, rec); |
|
|
|
|
|
iv->setValue(pos, rec, 0.0f); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
iv->doCalculations(); |
|
|
iv->doCalculations(); |
|
|
} |
|
|
} |
|
|
changed = true; |
|
|
changed = true; |
|
|