Subversion Repositories eduke32

Compare Revisions

Ignore whitespace Rev 8475 → Rev 8474

/source/kenbuild/src/game.cpp
1966,6 → 1966,8
}
}
 
#define MAXVOXMIPS 5
extern intptr_t voxoff[][MAXVOXMIPS];
void analyzesprites(int dax, int day)
{
int i, j=0, k, *intptr;
1977,7 → 1979,7
 
for (i=0,tspr=&tsprite[0]; i<spritesortcnt; i++,tspr++)
{
if (usevoxels)
if (usevoxels && tiletovox[tspr->picnum] >= 0)
switch (tspr->picnum)
{
case PLAYER:
1999,13 → 2001,8
 
if ((tspr->cstat&2) == 0)
{
if (voxid_PLAYER == -1)
break;
 
tspr->cstat |= 48;
tspr->picnum = voxid_PLAYER;
 
intptr = (int32_t *)voxoff[voxid_PLAYER][0];
//tspr->cstat |= 48; tspr->picnum = tiletovox[tspr->picnum];
intptr = (int *)voxoff[tiletovox[PLAYER]][0];
tspr->xrepeat = scale(tspr->xrepeat,56,intptr[2]);
tspr->yrepeat = scale(tspr->yrepeat,56,intptr[2]);
tspr->shade -= 6;
2012,11 → 2009,7
}
break;
case BROWNMONSTER:
if (voxid_BROWNMONSTER == -1)
break;
 
tspr->cstat |= 48;
tspr->picnum = voxid_BROWNMONSTER;
//tspr->cstat |= 48; tspr->picnum = tiletovox[tspr->picnum];
break;
}