Correctly Implemented DSP1 Op02h Vva.

This commit is contained in:
zsknight
2001-04-24 08:57:01 +00:00
parent 59c065de8f
commit 4bff501be9

View File

@@ -471,8 +471,11 @@ DSPOp02()
// [4/15/2001] (ViewerY+ViewerY1*NumberOfSlope);
Op02VOF=0x0000;
if(Op02LFE==0x2200)Op02VVA=0xFECD;
else Op02VVA=0xFFB2;
// if(Op02LFE==0x2200)Op02VVA=0xFECD;
// else Op02VVA=0xFFB2;
Op02VVA = (short)(Op02LES * tan(Op02AZS*6.2832/65536.0));
#ifdef DebugDSP1
Log_Message("OP02 FX:%d FY:%d FZ:%d LFE:%d LES:%d",Op02FX,Op02FY,Op02FZ,Op02LFE,Op02LES);
Log_Message(" AAS:%d AZS:%d VOF:%d VVA:%d",Op02AAS,Op02AZS,Op02VOF,Op02VVA);