mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-07 13:11:38 +02:00
0.7.31
fix zeroIvValues
This commit is contained in:
parent
55764102ce
commit
4831945d3a
1 changed files with 6 additions and 0 deletions
|
@ -484,6 +484,12 @@ void app:: zeroIvValues(bool checkAvail, bool skipYieldDay) {
|
|||
pos = iv->getPosByChFld(ch, fld, rec);
|
||||
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();
|
||||
}
|
||||
changed = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue