mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
* version changed to 0.58
* splitting stacks in hero window * minor fixes
This commit is contained in:
@@ -479,8 +479,8 @@ void CSlider<T>::clickLeft (tribool down)
|
||||
{
|
||||
float pw = LOCPLINT->current->motion.x-pos.x-16;
|
||||
float rw = pw / ((float)(pos.w-32));
|
||||
if (rw>1) rw=1;
|
||||
if (rw<0) rw=0;
|
||||
if (rw>1) return;
|
||||
if (rw<0) return;
|
||||
moveTo(rw*amount);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user