Skip to content

Commit

Permalink
- flag sprites for automapping regardless of the 'automapping' variab…
Browse files Browse the repository at this point in the history
…le's value.

Duke should show its floor sprites, too.
  • Loading branch information
coelckers committed Sep 6, 2021
1 parent 406bc58 commit fb7de5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/build/src/polymost.cpp
Expand Up @@ -3252,7 +3252,7 @@ void polymost_drawsprite(int32_t snum)
break;
}

if (automapping == 1 && (unsigned)spritenum < MAXSPRITES)
if ((unsigned)spritenum < MAXSPRITES)
show2dsprite.Set(spritenum);

_drawsprite_return:
Expand Down
2 changes: 1 addition & 1 deletion source/core/rendering/scene/hw_drawinfo.cpp
Expand Up @@ -281,7 +281,7 @@ void HWDrawInfo::DispatchSprites()
if (spritenum < 0 || (unsigned)tilenum >= MAXTILES)
continue;

if (automapping == 1 && (unsigned)spritenum < MAXSPRITES)
if ((unsigned)spritenum < MAXSPRITES)
show2dsprite.Set(spritenum);

setgotpic(tilenum);
Expand Down

0 comments on commit fb7de5e

Please sign in to comment.