fix JPABaseField::calcVel and JPADrawExecBillBoard::exec

This commit is contained in:
LagoLunatic
2024-04-16 23:23:12 -04:00
parent 5417608f6e
commit bc85a947e6
2 changed files with 2 additions and 2 deletions
-1
View File
@@ -77,7 +77,6 @@ struct TVec3<f32> : public Vec {
TVec3() {}
TVec3(f32 x, f32 y, f32 z) { set(x, y, z); }
TVec3(const Vec& b) { set(b); }
TVec3(const TVec3<f32>& b) { set(b); }
operator Vec*() { return (Vec*)&x; }
operator const Vec*() const { return (Vec*)&x; }
+2 -1
View File
@@ -289,7 +289,8 @@ void JPADrawExecBillBoard::exec(const JPADrawContext* pDC, JPABaseParticle* ptcl
scaleX *= (JPADrawContext::pcb->mGlobalScaleX + JPADrawContext::pcb->mPivotX);
scaleY *= (JPADrawContext::pcb->mGlobalScaleY + JPADrawContext::pcb->mPivotY);
JGeometry::TVec3<f32> pt(ptcl->mPosition);
JGeometry::TVec3<f32> pt;
pt.set(ptcl->mPosition);
MTXMultVec(JPADrawContext::pcb->mDrawMtxPtr, pt, &pt);
GXBegin(GX_QUADS, GX_VTXFMT0, 4);