Changeset 298
- Timestamp:
- Jan 27, 2011, 1:00:44 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emitter.cpp
r294 r298 26 26 friend class Emitter; 27 27 28 static const int MAX_PARTICLES = 1000; 29 28 30 private: 29 31 int tiler; 30 32 float3 gravity; 31 int particles[ 100];32 float3 positions[ 100];33 float3 velocities[ 100];33 int particles[MAX_PARTICLES]; 34 float3 positions[MAX_PARTICLES]; 35 float3 velocities[MAX_PARTICLES]; 34 36 int nparticles; 35 37 }; … … 78 80 void Emitter::AddParticle(int id, float3 pos, float3 vel) 79 81 { 80 if (data->nparticles >= 100)82 if (data->nparticles >= EmitterData::MAX_PARTICLES) 81 83 return; 82 84
Note: See TracChangeset
for help on using the changeset viewer.