[Scummvm-git-logs] scummvm master -> e76e6a190774435b60629e5dd9debcc7f14c0cd0

sev- sev at scummvm.org
Mon Dec 7 22:55:51 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
e76e6a1907 TWINE: Fix Amiga compilation


Commit: e76e6a190774435b60629e5dd9debcc7f14c0cd0
    https://github.com/scummvm/scummvm/commit/e76e6a190774435b60629e5dd9debcc7f14c0cd0
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-12-07T23:55:36+01:00

Commit Message:
TWINE: Fix Amiga compilation

Changed paths:
    engines/twine/sound.cpp


diff --git a/engines/twine/sound.cpp b/engines/twine/sound.cpp
index 43eb6aafa0..98ef6f7890 100644
--- a/engines/twine/sound.cpp
+++ b/engines/twine/sound.cpp
@@ -54,7 +54,7 @@ void Sound::setSamplePosition(int32 channelIdx, int32 x, int32 y, int32 z) {
 	const int32 camZ = _engine->_grid->newCameraZ << 9;
 	int32 distance = _engine->_movements->getDistance3D(camX, camY, camZ, x, y, z);
 	distance = _engine->_collision->getAverageValue(0, distance, 10000, 255);
-	const byte targetVolume = CLIP(255 - distance, 0, 255);
+	const byte targetVolume = CLIP<byte>(255 - distance, 0, 255);
 	_engine->_system->getMixer()->setChannelVolume(samplesPlaying[channelIdx], targetVolume);
 }
 




More information about the Scummvm-git-logs mailing list