mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Don't attempt to draw TILE_LOADSHOT unless it's already in memory
This works around a flaw in the .ext loading logic that I don't have time to debug right now. git-svn-id: https://svn.eduke32.com/eduke32@7882 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
c5dbbe892c
commit
3c28f6cfc6
1 changed files with 4 additions and 2 deletions
|
@ -2222,6 +2222,7 @@ static void Menu_PreDraw(MenuID_t cm, MenuEntry_t *entry, const vec2_t origin)
|
||||||
|
|
||||||
if (msv.brief.isValid())
|
if (msv.brief.isValid())
|
||||||
{
|
{
|
||||||
|
if (waloff[TILE_LOADSHOT])
|
||||||
rotatesprite_fs(origin.x + (101<<16), origin.y + (97<<16), 65536>>1,512,TILE_LOADSHOT,-32,0,4+10+64);
|
rotatesprite_fs(origin.x + (101<<16), origin.y + (97<<16), 65536>>1,512,TILE_LOADSHOT,-32,0,4+10+64);
|
||||||
|
|
||||||
if (msv.isOldVer)
|
if (msv.isOldVer)
|
||||||
|
@ -2282,6 +2283,7 @@ static void Menu_PreDraw(MenuID_t cm, MenuEntry_t *entry, const vec2_t origin)
|
||||||
{
|
{
|
||||||
if (g_menusaves[M_SAVE.currentEntry-1].brief.isValid())
|
if (g_menusaves[M_SAVE.currentEntry-1].brief.isValid())
|
||||||
{
|
{
|
||||||
|
if (waloff[TILE_LOADSHOT])
|
||||||
rotatesprite_fs(origin.x + (101<<16), origin.y + (97<<16), 65536L>>1,512,TILE_LOADSHOT,-32,0,4+10+64);
|
rotatesprite_fs(origin.x + (101<<16), origin.y + (97<<16), 65536L>>1,512,TILE_LOADSHOT,-32,0,4+10+64);
|
||||||
|
|
||||||
if (g_menusaves[M_SAVE.currentEntry-1].isOldVer)
|
if (g_menusaves[M_SAVE.currentEntry-1].isOldVer)
|
||||||
|
|
Loading…
Reference in a new issue