- deal with I_SetCursor

This commit is contained in:
Christoph Oelckers 2020-04-15 19:49:06 +02:00
commit 397b1520bc
6 changed files with 13 additions and 13 deletions

View file

@ -235,15 +235,15 @@ CUSTOM_CVAR (String, vid_cursor, "None", CVAR_ARCHIVE | CVAR_NOINITCALL)
if (!stricmp(self, "None" ) && gameinfo.CursorPic.IsNotEmpty())
{
res = I_SetCursor(TexMan.GetTextureByName(gameinfo.CursorPic));
res = I_SetCursor(TexMan.GetGameTextureByName(gameinfo.CursorPic));
}
else
{
res = I_SetCursor(TexMan.GetTextureByName(self));
res = I_SetCursor(TexMan.GetGameTextureByName(self));
}
if (!res)
{
I_SetCursor(TexMan.GetTextureByName("cursor"));
I_SetCursor(TexMan.GetGameTextureByName("cursor"));
}
}