Mapster32: always show highlighted sprites in 2D mode, even in a gray sector.

git-svn-id: https://svn.eduke32.com/eduke32@2274 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-01-20 22:11:40 +00:00
parent bb1070b795
commit 661e85155b

View file

@ -15158,15 +15158,19 @@ void draw2dscreen(const vec3_t *pos, int16_t cursectnum, int16_t ange, int32_t z
faketimerhandler();
if (zoome >= 256 || highlightcnt>0 /*|| editstatus == 0*/)
if (zoome >= 256 || highlightcnt>0)
for (j=0; j<MAXSPRITES; j++)
if (sprite[j].statnum<MAXSTATUS /*&& (editstatus == 1 || (show2dsprite[j>>3]&pow2char[j&7]))*/)
if (sprite[j].statnum<MAXSTATUS)
{
if (!m32_sideview && sprite[j].sectnum >= 0)
YAX_SKIPSECTOR(sprite[j].sectnum);
// if sprite is highlighted, always draw it
if ((show2dsprite[j>>3]&pow2char[j&7])==0)
{
if (!m32_sideview && sprite[j].sectnum >= 0)
YAX_SKIPSECTOR(sprite[j].sectnum);
if (zoome<256 && (show2dsprite[j>>3]&pow2char[j&7])==0)
continue;
if (zoome<256)
continue;
}
if (!m32_sideview)
drawscreen_drawsprite(j,posxe,posye,posze,zoome);