Game Development Community

Pc_color_keys -> Pc_size_keys?

by So Yamaoka · in Torque Game Engine · 08/12/2005 (10:33 pm) · 3 replies

Hi,

I'm using TGE 1.3.
in particleEngine.cc:

line 1516:  particle->color = particle->dataBlock->colors[ParticleEngine::PC_COLOR_KEYS - 1];
lnie 1517:  particle->size  = particle->dataBlock->sizes[ParticleEngine::PC_COLOR_KEYS - 1];

Is this supposed to:

line 1516:  particle->color = particle->dataBlock->colors[ParticleEngine::PC_COLOR_KEYS - 1];
lnie 1517:  particle->size  = particle->dataBlock->sizes[ParticleEngine::PC_SIZE_KEYS - 1];

Thanks,
So

#1
08/12/2005 (11:16 pm)
It is. Good eye. Thank you for the fix! #289.
#2
08/13/2005 (11:12 pm)
Hello,
I don't know if this is an issue or not, but in all of particleengine.cc, the order of particle colors and sizes have been the same,
but around line 493 you see that colors and sizes are in different order.

Just thought it could use a quick glance.
I thought it might be something that may affect the issue posted above. (may have a different value)
#3
08/16/2005 (5:39 pm)
Ok, I've gone over the code and all the PC_*_KEYS counts are matched properly, in 1.4 trunk. Thanks guys!