NEVERHOOD: Fix AsScene3011Symbol

This commit is contained in:
johndoe123 2012-10-01 14:21:47 +00:00 committed by Willem Jan Palenstijn
parent 45da15adce
commit 1b3a686cac
3 changed files with 5 additions and 6 deletions

View File

@ -1445,7 +1445,7 @@ uint32 Scene1609::handleMessage(int messageNum, const MessageParam &param, Entit
if (!_flag6) {
if (_flag5)
_asSymbols[_index3]->change(_index1 + 12, false);
_asSymbols[_index3]->stopSound();
_asSymbols[_index3]->stopSymbolSound();
_index3++;
if (_index3 >= 12) {
if (testVars()) {

View File

@ -1498,12 +1498,11 @@ void AsScene3011Symbol::hide() {
setVisible(false);
}
void AsScene3011Symbol::stopSound() {
void AsScene3011Symbol::stopSymbolSound() {
if (_flag2) {
Entity::stopSound(1);
stopSound(1);
} else {
// CHECKME this is wrong
//_soundResource2.stop();
stopSound(0);
}
}

View File

@ -224,7 +224,7 @@ public:
AsScene3011Symbol(NeverhoodEngine *vm, int index, bool flag);
void show(bool flag);
void hide();
void stopSound();
void stopSymbolSound();
void change(int index, bool flag);
bool getFlag1() { return _flag1; }
int getIndex() { return _index; }