1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-24 03:47:18 +02:00

Animated spellcasting cursor now has same speed as in H3

This commit is contained in:
Ivan Savenko 2023-01-27 13:07:45 +02:00
parent 3acee297be
commit f1647cc3bb

View File

@ -260,7 +260,7 @@ void CursorHandler::centerCursor()
void CursorHandler::updateSpellcastCursor()
{
static const float frameDisplayDuration = 0.1f;
static const float frameDisplayDuration = 5.0 / 60.0; // H3 uses ~83 ms per image = 5 / 60 second
frameTime += GH.mainFPSmng->getElapsedMilliseconds() / 1000.f;
size_t newFrame = frame;