This commit is contained in:
Daveo 2001-05-21 16:05:09 +00:00
parent 0a4fb4f591
commit 9d6b4df9ad

View file

@ -807,12 +807,26 @@ int TriCount=Model->TriCount;
sTri *TList=&ModelTriList[Model->TriStart]; sTri *TList=&ModelTriList[Model->TriStart];
MATRIX Mtx; MATRIX Mtx;
if (Scale) // If has scale && angle then need to use PSX scale matrix, otherwise, force values
SetIdentNoTrans(&Mtx,Scale); if (Angle)
{
RotMatrix_gte(Angle,&Mtx);
if (Scale)
{
ScaleMatrix(&Mtx,Scale);
}
}
else else
{
if (Scale)
{
SetIdentNoTrans(&Mtx,Scale);
}
else
{
SetIdentNoTrans(&Mtx); SetIdentNoTrans(&Mtx);
}
if (Angle) RotMatrix(Angle,&Mtx); }
MapXY.vx=Pos.vx>>4; MapXY.vx=Pos.vx>>4;
MapXY.vy=Pos.vy>>4; MapXY.vy=Pos.vy>>4;