Remove completely mistaken comment from the original code. Textures use
0 to 256 range of texture coordinates, and the width of the texture should therefore not be used to deduce wrap around point for texture animation. git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3719 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
05a6223814
commit
54bcf0cde5
|
@ -287,8 +287,6 @@ static inline void pie_PiePolyFrame(PIEPOLY *poly, SDWORD frame, const BOOL ligh
|
|||
|
||||
if (frame > 0)
|
||||
{
|
||||
// HACK - fix this!!!!
|
||||
// should be: framesPerLine = iV_TEXTEX(texPage)->width / poly->pTexAnim->textureWidth;
|
||||
const unsigned int framesPerLine = 256 / poly->pTexAnim->textureWidth;
|
||||
const unsigned int
|
||||
uFrame = (frame % framesPerLine) * poly->pTexAnim->textureWidth,
|
||||
|
|
Loading…
Reference in New Issue