Commit 76e85d63 authored by Evan Ramos's avatar Evan Ramos
Browse files

Duke: Fix semantics of G_CheckAdultTile w.r.t. tileGetMapping

parent c8173407
......@@ -3599,8 +3599,7 @@ static int getofs_viewtype_mirrored(uint16_t & cstat, int angDiff)
#ifndef EDUKE32_STANDALONE
static int G_CheckAdultTile(int tileNum)
{
UNREFERENCED_PARAMETER(tileNum);
switch (tileNum)
switch (tileGetMapping(tileNum))
{
case FEM1__:
case FEM2__:
......@@ -3825,7 +3824,7 @@ void G_DoSpriteAnimations(int32_t ourx, int32_t oury, int32_t ourz, int32_t oura
auto const pSprite = (i < 0) ? (uspriteptr_t)&tsprite[j] : (uspriteptr_t)&sprite[i];
#ifndef EDUKE32_STANDALONE
if (ud.lockout && G_CheckAdultTile(tileGetMapping(pSprite->picnum)))
if (ud.lockout && G_CheckAdultTile(pSprite->picnum))
{
t->xrepeat = t->yrepeat = 0;
continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment