1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

vcmi:towns now can choose if moat render is needed

Using invalid points. Also removed unused variable.
This commit is contained in:
Konstantin
2023-03-26 00:44:10 +03:00
parent a8478a012b
commit c4d5a7a2d6
6 changed files with 28 additions and 21 deletions

View File

@ -53,8 +53,6 @@ void CursorSoftware::createTexture(const Point & dimensions)
void CursorSoftware::updateTexture()
{
Point dimensions(-1, -1);
if (!cursorSurface || Point(cursorSurface->w, cursorSurface->h) != cursorImage->dimensions())
createTexture(cursorImage->dimensions());