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:
terminx 2019-08-04 02:52:14 +00:00 committed by Christoph Oelckers
parent c5dbbe892c
commit 3c28f6cfc6

View file

@ -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)