mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 08:09:39 +00:00
Fix broken dialogue Function_HealthPercent
This commit is contained in:
parent
d4007ad89e
commit
e54ba2c5d1
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ bool MWDialogue::Filter::testSelectStructNumeric (const SelectWrapper& select) c
|
||||||
float ratio = mActor.getClass().getCreatureStats (mActor).getHealth().getCurrent() /
|
float ratio = mActor.getClass().getCreatureStats (mActor).getHealth().getCurrent() /
|
||||||
mActor.getClass().getCreatureStats (mActor).getHealth().getModified();
|
mActor.getClass().getCreatureStats (mActor).getHealth().getModified();
|
||||||
|
|
||||||
return select.selectCompare (ratio);
|
return select.selectCompare (static_cast<int>(ratio*100));
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue