mirror of
https://github.com/zeldaret/tww.git
synced 2026-06-08 12:17:12 -04:00
fix JPABaseField::calcVel and JPADrawExecBillBoard::exec
This commit is contained in:
@@ -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; }
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user