1
0
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:
Michał W. Urbańczyk
2008-04-20 12:39:33 +00:00
parent d7b5099b6f
commit 4ff5788e51
6 changed files with 17 additions and 13 deletions

View File

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