[Scummvm-cvs-logs] scummvm master -> b22bb6d46348a3ee6e115ceb6e84674dd763da6a

clone2727 clone2727 at gmail.com
Tue Feb 26 00:08:44 CET 2013


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:
b22bb6d463 HOPKINS: Remove long double usage


Commit: b22bb6d46348a3ee6e115ceb6e84674dd763da6a
    https://github.com/scummvm/scummvm/commit/b22bb6d46348a3ee6e115ceb6e84674dd763da6a
Author: Matthew Hoops (clone2727 at gmail.com)
Date: 2013-02-25T07:27:01-08:00

Commit Message:
HOPKINS: Remove long double usage

Changed paths:
    engines/hopkins/sound.cpp



diff --git a/engines/hopkins/sound.cpp b/engines/hopkins/sound.cpp
index 0ea33cd..43bceb0 100644
--- a/engines/hopkins/sound.cpp
+++ b/engines/hopkins/sound.cpp
@@ -589,7 +589,7 @@ bool SoundManager::mixVoice(int voiceId, int voiceMode, bool dispTxtFl) {
 
 		// Reduce music volume during speech
 		if (!_musicOffFl && _musicVolume > 2) {
-			_musicVolume = (signed int)((long double)_musicVolume - (long double)_musicVolume / 100.0 * 45.0);
+			_musicVolume -= _musicVolume * 9 / 20;
 			setMODMusicVolume(_musicVolume);
 		}
 	}






More information about the Scummvm-git-logs mailing list