switch to signed values for items

This commit is contained in:
uvos 2022-02-01 22:36:24 +01:00
parent 1f36522492
commit 6a9ad7f855
12 changed files with 39 additions and 36 deletions

View file

@ -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);
}