switch to signed values for items
This commit is contained in:
parent
1f36522492
commit
6a9ad7f855
12 changed files with 39 additions and 36 deletions
|
|
@ -66,7 +66,7 @@ void TrainJs::axisChanged(const int id, const int axis, const qreal value)
|
|||
{
|
||||
if(std::shared_ptr<Item> workitem = item_.lock())
|
||||
{
|
||||
uint8_t newValue = (value+1)*7;
|
||||
int8_t newValue = value*14;
|
||||
if(newValue != workitem->getValue())
|
||||
workitem->setValue(newValue);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue