mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-07 02:05:35 -04:00
clangd: Started fixing warnings and errors, code cleanup
This commit is contained in:
@@ -336,6 +336,7 @@ f32 J3DHermiteInterpolationS(f32 t, s16* time0, s16* value0, s16* tangent0, s16*
|
||||
register s16* p6 = value1;
|
||||
register s16* p7 = tangent1;
|
||||
register f32 fout;
|
||||
#ifdef __MWERKS__
|
||||
asm {
|
||||
psq_l f0, 0(p2), 0x1, 5
|
||||
psq_l f3, 0(p5), 0x1, 5
|
||||
@@ -358,6 +359,7 @@ f32 J3DHermiteInterpolationS(f32 t, s16* time0, s16* value0, s16* tangent0, s16*
|
||||
fmadds fout, f5, f7, fout
|
||||
fsubs fout, fout, f3
|
||||
}
|
||||
#endif
|
||||
return fout;
|
||||
}
|
||||
|
||||
|
||||
@@ -598,7 +598,7 @@ extern void J3DPSMtxArrayConcat(f32(*)[4], f32(*)[4], f32(*)[4], u32);
|
||||
void J3DModel::calcDrawMtx() {
|
||||
u16 i;
|
||||
switch (getMtxCalcMode()) {
|
||||
case 0:
|
||||
case 0: {
|
||||
MtxP viewMtx = j3dSys.getViewMtx();
|
||||
for (i = 0; i < mModelData->getDrawFullWgtMtxNum(); i++) {
|
||||
u16 drawMtxIdx = mModelData->getDrawMtxIndex(i);
|
||||
@@ -608,6 +608,7 @@ void J3DModel::calcDrawMtx() {
|
||||
J3DPSMtxArrayConcat(viewMtx, getWeightAnmMtx(0), getDrawMtx(mModelData->getDrawFullWgtMtxNum()), mModelData->getWEvlpMtxNum());
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 1:
|
||||
for (i = 0; i < mModelData->getDrawFullWgtMtxNum(); i++) {
|
||||
MTXCopy(getAnmMtx(mModelData->getDrawMtxIndex(i)), getDrawMtx(i));
|
||||
|
||||
Reference in New Issue
Block a user