TSAGE: Loop variables are meant to be integers rather than bools

This commit is contained in:
Paul Gilbert 2011-06-20 22:33:55 +10:00
parent adb40844d8
commit 0d485d2822
2 changed files with 11 additions and 11 deletions

View File

@ -1395,11 +1395,11 @@ Sound::Sound() {
_group = 0;
_sndResPriority = 0;
_fixedPriority = -1;
_sndResLoop = true;
_fixedLoop = true;
_sndResLoop = 1;
_fixedLoop = -1;
_priority = 0;
_volume = 127;
_loop = false;
_loop = 0;
_pausedCount = 0;
_mutedCount = 0;
_hold = 0xff;
@ -1660,7 +1660,7 @@ void Sound::setPri(int priority) {
_soundManager->updateSoundPri(this);
}
void Sound::setLoop(bool flag) {
void Sound::setLoop(int flag) {
_fixedLoop = flag;
_soundManager->updateSoundLoop(this);
}
@ -1669,7 +1669,7 @@ int Sound::getPri() const {
return _priority;
}
bool Sound::getLoop() {
int Sound::getLoop() {
return _loop;
}

View File

@ -264,8 +264,8 @@ public:
int _group;
int _sndResPriority;
int _fixedPriority;
bool _sndResLoop;
bool _fixedLoop;
int _sndResLoop;
int _fixedLoop;
int _priority;
int _volume;
int _loop;
@ -329,9 +329,9 @@ public:
void setVol(int volume);
int getVol() const;
void setPri(int priority);
void setLoop(bool flag);
void setLoop(int flag);
int getPri() const;
bool getLoop();
int getLoop();
void holdAt(int amount);
void release();
void orientAfterDriverChange();
@ -384,9 +384,9 @@ public:
void setTimeIndex(uint32 timeIndex) { _sound.setTimeIndex(timeIndex); }
uint32 getTimeIndex() const { return _sound.getTimeIndex(); }
void setPri(int v) { _sound.setPri(v); }
void setLoop(bool flag) { _sound.setLoop(flag); }
void setLoop(int total) { _sound.setLoop(total); }
int getPri() const { return _sound.getPri(); }
bool getLoop() { return _sound.getLoop(); }
int getLoop() { return _sound.getLoop(); }
void setVol(int volume) { _sound.setVol(volume); }
int getVol() const { return _sound.getVol(); }
void holdAt(int v) { _sound.holdAt(v); }