Subversion Repositories eduke32

Compare Revisions

Ignore whitespace Rev 8474 → Rev 8475

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