mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
Merge pull request #294 from dydzio0614/bug2476
Fix bug #2476 (2nd solution)
This commit is contained in:
commit
48702a26a4
@ -370,7 +370,7 @@ void CGuiHandler::handleMoveInterested(const SDL_MouseMotionEvent & motion)
|
|||||||
std::list<CIntObject*> miCopy = motioninterested;
|
std::list<CIntObject*> miCopy = motioninterested;
|
||||||
for(auto & elem : miCopy)
|
for(auto & elem : miCopy)
|
||||||
{
|
{
|
||||||
if ((elem)->strongInterest || isItIn(&(elem)->pos, motion.x, motion.y))
|
if ((elem)->strongInterest || isItIn(&(elem)->pos, motion.x-1, motion.y-1)) //-1 offset to include lower bound, fixes bug #2476
|
||||||
{
|
{
|
||||||
(elem)->mouseMoved(motion);
|
(elem)->mouseMoved(motion);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user