Project

General

Profile

« Previous | Next » 

Revision 2ef5dd9e

Added by Leszek Koltunski almost 7 years ago

Bugfixes for the recent 'Effect classes' API change.

View differences:

src/main/java/org/distorted/library/main/EffectQueue.java
157 157
    return ret;
158 158
    }
159 159

  
160
///////////////////////////////////////////////////////////////////////////////////////////////////
161

  
162
  synchronized int removeById(long id)
163
    {
164
    int ret = 0;
165

  
166
    for(int i=0; i<mNumEffects; i++)
167
      {
168
      if( mEffects[i].getID() == id )
169
        {
170
        remove(i);
171
        i--;
172
        ret++;
173
        }
174
      }
175

  
176
    return ret;
177
    }
178

  
160 179
///////////////////////////////////////////////////////////////////////////////////////////////////
161 180

  
162 181
  synchronized int removeEffect(Effect effect)

Also available in: Unified diff