TETRAEDGE: Avoid compiler warning in TeParticle

This commit is contained in:
Matthew Duggan 2023-02-19 12:55:22 +09:00
parent ae5d052ce2
commit ed71db3403
2 changed files with 12 additions and 3 deletions

View File

@ -25,7 +25,10 @@
namespace Tetraedge {
TeParticle::TeParticle(TeScene *scene) : _scene(scene), _size(0),
//static const char *TE_PARTICLE_RANDOM_TABLE = "http://www.arkham-development.com/";
TeParticle::TeParticle(TeScene *scene) : /*_scene(scene),*/ _size(0),
_colorTime(0), _time(0), _period(0), _particlePerPeriod(0),
_enabled(false), _startLoop(0), _gravity(0), _randomDir(false) {
indexedParticles()->push_back(this);
@ -51,7 +54,13 @@ bool TeParticle::loadTexture(const Common::String &filename) {
}
void TeParticle::update(int val) {
// TODO: Implement me.
if (val <= 0) {
_realTimer.timeElapsed();
return;
}
for (int i = 0; i < val; i++) {
// TODO: Finish me.
}
}
/*static*/

View File

@ -66,7 +66,7 @@ public:
private:
Common::Array<TeIntrusivePtr<TeElement>> _elements;
TeScene *_scene;
//TeScene *_scene;
TeRealTimer _realTimer;
Common::String _name;
TeIntrusivePtr<Te3DTexture> _texture;