Changeset 298


Ignore:
Timestamp:
Jan 27, 2011, 1:00:44 AM (10 years ago)
Author:
sam
Message:

Allow more particles, just in case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emitter.cpp

    r294 r298  
    2626    friend class Emitter;
    2727
     28    static const int MAX_PARTICLES = 1000;
     29
    2830private:
    2931    int tiler;
    3032    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];
    3436    int nparticles;
    3537};
     
    7880void Emitter::AddParticle(int id, float3 pos, float3 vel)
    7981{
    80     if (data->nparticles >= 100)
     82    if (data->nparticles >= EmitterData::MAX_PARTICLES)
    8183        return;
    8284
Note: See TracChangeset for help on using the changeset viewer.