mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-18 21:18:23 -04:00
More inlines
Also update dtk-template
This commit is contained in:
@@ -234,17 +234,15 @@ namespace daBomb2 {
|
||||
}
|
||||
|
||||
void FuseSparksCB_c::execute(JPABaseEmitter* emitter) {
|
||||
f32 x = mpPos->x;
|
||||
f32 y = mpPos->y;
|
||||
f32 z = mpPos->z;
|
||||
emitter->mGlobalTranslation.set(x, y, z);
|
||||
JGeometry::TVec3<f32> pos(*mpPos);
|
||||
emitter->setGlobalTranslation(pos);
|
||||
|
||||
JSUPtrLink* link = emitter->getParticleList()->getFirstLink();
|
||||
while(link != 0) {
|
||||
JSUPtrLink* next = link->getNext();
|
||||
|
||||
JPABaseParticle* ptcl = (JPABaseParticle*)link->getObjectPtr();
|
||||
ptcl->setOffsetPosition(x, y, z);
|
||||
ptcl->setOffsetPosition(pos);
|
||||
|
||||
link = next;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user