if(get_type()==ValueBase::TYPE_COLOR)
return ((*ref_a)(t).get(Color())-(*ref_b)(t).get(Color()))*(*scalar)(t).get(Real());
if(get_type()==ValueBase::TYPE_INTEGER)
- return ((*ref_a)(t).get(int())-(*ref_b)(t).get(int()))*(*scalar)(t).get(Real());
+ return static_cast<int>(((*ref_a)(t).get(int())-(*ref_b)(t).get(int()))*(*scalar)(t).get(Real()) + 0.5f);
if(get_type()==ValueBase::TYPE_REAL)
return ((*ref_a)(t).get(Vector::value_type())-(*ref_b)(t).get(Vector::value_type()))*(*scalar)(t).get(Real());
if(get_type()==ValueBase::TYPE_VECTOR)