mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 16:11:37 -04:00
Use float for setting skill use values. Should resolve bug #2183.
This commit is contained in:
parent
3b5cd286f6
commit
6731afc79c
@ -272,7 +272,7 @@ namespace CSMWorld
|
|||||||
{
|
{
|
||||||
ESXRecordT record2 = record.get();
|
ESXRecordT record2 = record.get();
|
||||||
|
|
||||||
record2.mData.mUseValue[mIndex] = data.toInt();
|
record2.mData.mUseValue[mIndex] = data.toFloat();
|
||||||
|
|
||||||
record.setModified (record2);
|
record.setModified (record2);
|
||||||
}
|
}
|
||||||
|
@ -173,6 +173,8 @@ QWidget *CSVWorld::CommandDelegate::createEditor (QWidget *parent, const QStyleO
|
|||||||
{
|
{
|
||||||
QDoubleSpinBox *dsb = new QDoubleSpinBox(parent);
|
QDoubleSpinBox *dsb = new QDoubleSpinBox(parent);
|
||||||
dsb->setRange(FLT_MIN, FLT_MAX);
|
dsb->setRange(FLT_MIN, FLT_MAX);
|
||||||
|
dsb->setSingleStep(0.01f);
|
||||||
|
dsb->setDecimals(3);
|
||||||
return dsb;
|
return dsb;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user