diff options
author | twinaphex | 2017-08-14 08:06:11 +0200 |
---|---|---|
committer | twinaphex | 2017-08-14 08:06:11 +0200 |
commit | 78b32e05a8e3c221279ba40c8f19d762420be8a6 (patch) | |
tree | 522343d835ca7eec5ebae18c20ec35ac768250be /source/c4.c | |
parent | 75dbfcb2348fb8f41feb5b9b1536d8525a47f9e3 (diff) | |
download | snes9x2005-78b32e05a8e3c221279ba40c8f19d762420be8a6.tar.gz snes9x2005-78b32e05a8e3c221279ba40c8f19d762420be8a6.tar.bz2 snes9x2005-78b32e05a8e3c221279ba40c8f19d762420be8a6.zip |
C++ comments need to become C
Diffstat (limited to 'source/c4.c')
-rw-r--r-- | source/c4.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/c4.c b/source/c4.c index 04e4d21..d784a7c 100644 --- a/source/c4.c +++ b/source/c4.c @@ -137,22 +137,22 @@ void C4TransfWireFrame() c4y = C4WFYVal; c4z = C4WFZVal - 0x95; - // Rotate X + /* Rotate X */ tanval = -C4WFX2Val << 9; c4y2 = (c4y * C4_Cos(tanval) - c4z * C4_Sin(tanval)) >> 15; c4z2 = (c4y * C4_Sin(tanval) + c4z * C4_Cos(tanval)) >> 15; - // Rotate Y + /* Rotate Y */ tanval = -C4WFY2Val << 9; c4x2 = (c4x * C4_Cos(tanval) + c4z2 * C4_Sin(tanval)) >> 15; c4z = (c4x * -C4_Sin(tanval) + c4z2 * C4_Cos(tanval)) >> 15; - // Rotate Z + /* Rotate Z */ tanval = -C4WFDist << 9; c4x = (c4x2 * C4_Cos(tanval) - c4y2 * C4_Sin(tanval)) >> 15; c4y = (c4x2 * C4_Sin(tanval) + c4y2 * C4_Cos(tanval)) >> 15; - // Scale + /* Scale */ C4WFXVal = (int16_t)(((int32_t)c4x * C4WFScale * 0x95) / (0x90 * (c4z + 0x95))); C4WFYVal = (int16_t)(((int32_t)c4y * C4WFScale * 0x95) / (0x90 * (c4z + 0x95))); } @@ -163,22 +163,22 @@ void C4TransfWireFrame2() c4y = C4WFYVal; c4z = C4WFZVal; - // Rotate X + /* Rotate X */ tanval = -C4WFX2Val << 9; c4y2 = (c4y * C4_Cos(tanval) - c4z * C4_Sin(tanval)) >> 15; c4z2 = (c4y * C4_Sin(tanval) + c4z * C4_Cos(tanval)) >> 15; - // Rotate Y + /* Rotate Y */ tanval = -C4WFY2Val << 9; c4x2 = (c4x * C4_Cos(tanval) + c4z2 * C4_Sin(tanval)) >> 15; c4z = (c4x * -C4_Sin(tanval) + c4z2 * C4_Cos(tanval)) >> 15; - // Rotate Z + /* Rotate Z */ tanval = -C4WFDist << 9; c4x = (c4x2 * C4_Cos(tanval) - c4y2 * C4_Sin(tanval)) >> 15; c4y = (c4x2 * C4_Sin(tanval) + c4y2 * C4_Cos(tanval)) >> 15; - // Scale + /* Scale */ C4WFXVal = (int16_t)(((int32_t)c4x * C4WFScale) / 0x100); C4WFYVal = (int16_t)(((int32_t)c4y * C4WFScale) / 0x100); } |