Subversion Repositories eduke32

Compare Revisions

Ignore whitespace Rev 8787 → Rev 8786

/source/duke3d/src/game.cpp
4155,14 → 4155,15
if ((unsigned)scrofs_action + ACTION_PARAM_COUNT > (unsigned)g_scriptSize)
goto skip;
 
int32_t viewtype = apScript[scrofs_action + ACTION_VIEWTYPE];
l = apScript[scrofs_action + ACTION_VIEWTYPE];
uint16_t const action_flags = apScript[scrofs_action + ACTION_FLAGS];
#else
l = viewtype;
uint16_t const action_flags = actor[i].ac.flags;
#endif
 
int const invertp = viewtype < 0;
l = klabs(viewtype);
int const invertp = l < 0;
l = klabs(l);
 
if (tilehasmodelorvoxel(pSprite->picnum,t->pal) && !(spriteext[i].flags&SPREXT_NOTMD))
{
4213,13 → 4214,13
}
 
#if !defined LUNATIC
t->picnum += frameOffset + apScript[scrofs_action + ACTION_STARTFRAME] + viewtype*curframe;
t->picnum += frameOffset + apScript[scrofs_action + ACTION_STARTFRAME] + l*curframe;
#else
t->picnum += frameOffset + startframe + viewtype*curframe;
t->picnum += frameOffset + startframe + l*curframe;
#endif
// XXX: t->picnum can be out-of-bounds by bad user code.
 
if (viewtype > 0)
if (l > 0)
while (tilesiz[t->picnum].x == 0 && t->picnum > 0)
t->picnum -= l; //Hack, for actors