mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
* improved slider ( #58 )
* fixed problems with horde buildings (won't block original dwellings) * giving primary skill when hero get level (but there is still no dialog) * if an upgraded creature is available it'll be shown as the first in a recruitment window * creature levels not messed in Fortress * war machines are added to the hero's inventory, not to the garrison * support for H3-style PCX graphics in Data/ (not tested) * started doing support for ZSoft PCX graphics in Data/ * VCMI won't crash when is unable to initialize audio system * fixed displaying wrong town defs * minor fixes and improvements
This commit is contained in:
@@ -419,7 +419,7 @@ void CSlider<T>::sliderClicked()
|
||||
template<typename T>
|
||||
void CSlider<T>::mouseMoved (SDL_MouseMotionEvent & sEvent)
|
||||
{
|
||||
float v = sEvent.x - pos.x - 16;
|
||||
float v = sEvent.x - pos.x - 24;
|
||||
v/= (pos.w - 48);
|
||||
v*=amount;
|
||||
if(v!=value)
|
||||
|
||||
Reference in New Issue
Block a user