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];
MATRIX Mtx;
if (Scale)
SetIdentNoTrans(&Mtx,Scale);
// If has scale && angle then need to use PSX scale matrix, otherwise, force values
if (Angle)
{
RotMatrix_gte(Angle,&Mtx);
if (Scale)
{
ScaleMatrix(&Mtx,Scale);
}
}
else
{
if (Scale)
{
SetIdentNoTrans(&Mtx,Scale);
}
else
{
SetIdentNoTrans(&Mtx);
if (Angle) RotMatrix(Angle,&Mtx);
}
}
MapXY.vx=Pos.vx>>4;
MapXY.vy=Pos.vy>>4;