projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20100315-2-src
[rocksndiamonds.git]
/
src
/
game_sp
/
Zonk.c
diff --git
a/src/game_sp/Zonk.c
b/src/game_sp/Zonk.c
index d6a31acccd361beaff5cd0105d9d804ff3af97a6..b14af7eac5845d37788bf8f03c359b0fc07703d8 100644
(file)
--- a/
src/game_sp/Zonk.c
+++ b/
src/game_sp/Zonk.c
@@
-183,7
+183,12
@@
loc_g_0DE8: // zonk comes falling from above
if (ax == fiOrangeDisk) // OrangeDisk explodes 'loc_g_0E95:
goto loc_g_0F75;
if (ax == fiOrangeDisk) // OrangeDisk explodes 'loc_g_0E95:
goto loc_g_0F75;
+#if 1
+ // play the zonk sound, 'cause zonk hits something "hard"
+ subSoundFX(si, fiZonk, actImpact);
+#else
subSoundFXZonk(); // play the zonk sound,'cause zonk hits something "hard"
subSoundFXZonk(); // play the zonk sound,'cause zonk hits something "hard"
+#endif
if (! (ax == fiZonk || ax == fiInfotron || ax == fiRAM))
return subAnimateZonks;
if (! (ax == fiZonk || ax == fiInfotron || ax == fiRAM))
return subAnimateZonks;
@@
-211,7
+216,7
@@
loc_g_0EEA: // test if zonk may roll left
goto loc_g_0D4C;
MovHighByte(&PlayField16[si], 0x50); // zonk rolls left
goto loc_g_0D4C;
MovHighByte(&PlayField16[si], 0x50); // zonk rolls left
-
Mov(&PlayField16[si - 1], 0x8888)
; // mark as zonk accessing?
+
PlayField16[si - 1] = 0x8888
; // mark as zonk accessing?
return subAnimateZonks;
loc_g_0F00: // test if zonk may roll right
return subAnimateZonks;
loc_g_0F00: // test if zonk may roll right
@@
-219,7
+224,7
@@
loc_g_0F00: // test if zonk may roll right
return subAnimateZonks;
MovHighByte(&PlayField16[si], 0x60); // zonk rolls right
return subAnimateZonks;
MovHighByte(&PlayField16[si], 0x60); // zonk rolls right
-
Mov(&PlayField16[si + 1], 0x8888)
; // mark as zonk accessing?
+
PlayField16[si + 1] = 0x8888
; // mark as zonk accessing?
return subAnimateZonks;
loc_g_0F14: // Murphy dies, but not in any case
return subAnimateZonks;
loc_g_0F14: // Murphy dies, but not in any case
@@
-498,4
+503,3
@@
loc_g_16A7:
return subCleanUpForZonksAbove;
} // subCleanUpForZonksAbove
return subCleanUpForZonksAbove;
} // subCleanUpForZonksAbove
-