This commit is contained in:
parent
0a4fb4f591
commit
9d6b4df9ad
1 changed files with 18 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue