Game Development Community

TGEA 1.7.0 Bug - ImageEmitters created even if no emitter exists

by Danni · in Torque Game Engine Advanced · 04/20/2008 (7:01 pm) · 0 replies

This is very odd, the engine goes through the trouble of allocating memory and creating a ParticleEmitter() then deletes it a few lines down for every imageState transition if a stateEmitter does not exist??

If this is not the intended behaviour, change lines 1784 in shapeImage.cpp from:
// Start particle emitter on the client
   if (isGhost())
      startImageEmitter(image,stateData);
to
// Start particle emitter on the client
   if (isGhost() && stateData.emitter)
      startImageEmitter(image,stateData);