diff options
author | Torbjörn Andersson | 2005-05-01 10:15:30 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-05-01 10:15:30 +0000 |
commit | d6fb5517ed384a3f35d6d5915f50f661f755a225 (patch) | |
tree | b0a9d82b38d29db7b449c0ce2aad891334510b66 /gob/map.cpp | |
parent | 2b351f73f46004fd0817a5650dd9de6b5190af3a (diff) | |
download | scummvm-rg350-d6fb5517ed384a3f35d6d5915f50f661f755a225.tar.gz scummvm-rg350-d6fb5517ed384a3f35d6d5915f50f661f755a225.tar.bz2 scummvm-rg350-d6fb5517ed384a3f35d6d5915f50f661f755a225.zip |
This should fix the negative frequency bug that caused some sound effects
to not be played, and probably fixes wrong frequency on some that were
played. It's all guesswork, though. I don't know if this is what the
original did.
svn-id: r17882
Diffstat (limited to 'gob/map.cpp')
-rw-r--r-- | gob/map.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/gob/map.cpp b/gob/map.cpp index a947996ff8..6671e33895 100644 --- a/gob/map.cpp +++ b/gob/map.cpp @@ -554,7 +554,7 @@ void map_loadMapObjects(char *avjFile) { } tmpState->freq = map_loadFromAvo_LE_UINT16(); tmpState->repCount = map_loadFromAvo_LE_UINT16(); - tmpState->unk2 = map_loadFromAvo_LE_UINT16(); + tmpState->sndFrame = map_loadFromAvo_LE_UINT16(); } } } @@ -583,13 +583,13 @@ void map_loadMapObjects(char *avjFile) { pState->unk1 = 0; pState->sndItem = -1; - gob_goblins[2]->stateMach[10][0]->unk2 = 13; - gob_goblins[2]->stateMach[11][0]->unk2 = 13; - gob_goblins[2]->stateMach[28][0]->unk2 = 13; - gob_goblins[2]->stateMach[29][0]->unk2 = 13; + gob_goblins[2]->stateMach[10][0]->sndFrame = 13; + gob_goblins[2]->stateMach[11][0]->sndFrame = 13; + gob_goblins[2]->stateMach[28][0]->sndFrame = 13; + gob_goblins[2]->stateMach[29][0]->sndFrame = 13; - gob_goblins[1]->stateMach[10][0]->unk2 = 13; - gob_goblins[1]->stateMach[11][0]->unk2 = 13; + gob_goblins[1]->stateMach[10][0]->sndFrame = 13; + gob_goblins[1]->stateMach[11][0]->sndFrame = 13; for (state = 40; state < 70; state++) { pState = (Gob_State *)malloc(sizeof(Gob_State)); @@ -599,7 +599,7 @@ void map_loadMapObjects(char *avjFile) { pState->animation = 9; pState->layer = state - 40; pState->sndItem = -1; - pState->unk2 = 0; + pState->sndFrame = 0; } gob_objCount = map_loadFromAvo_LE_UINT16(); @@ -651,10 +651,9 @@ void map_loadMapObjects(char *avjFile) { } tmpState->freq = map_loadFromAvo_LE_UINT16(); tmpState->repCount = map_loadFromAvo_LE_UINT16(); - tmpState->unk2 = map_loadFromAvo_LE_UINT16(); + tmpState->sndFrame = map_loadFromAvo_LE_UINT16(); } } - } gob_objects[10] = (Gob_Object *)malloc(sizeof(Gob_Object)); @@ -672,7 +671,7 @@ void map_loadMapObjects(char *avjFile) { pState->unk0 = 0; pState->unk1 = 0; pState->sndItem = -1; - pState->unk2 = 0; + pState->sndFrame = 0; gob_placeObject(gob_objects[10], 1); |