mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Rewrote hero moving code. Seems to be working.
This commit is contained in:
@ -1325,7 +1325,7 @@ unsigned char CMapHandler::getHeroFrameNum(const unsigned char &dir, const bool
|
||||
case 8:
|
||||
return 11;
|
||||
default:
|
||||
return -1; //should never happen
|
||||
throw std::exception("Something very wrong1.");
|
||||
}
|
||||
}
|
||||
else //if(isMoving)
|
||||
@ -1349,7 +1349,7 @@ unsigned char CMapHandler::getHeroFrameNum(const unsigned char &dir, const bool
|
||||
case 8:
|
||||
return 14;
|
||||
default:
|
||||
return -1; //should never happen
|
||||
throw std::exception("Something very wrong2.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user