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

dreammaster dreammaster at scummvm.org
Tue May 10 12:52:31 CEST 2011


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:
ef282206b0 TSAGE: Tweaked mouse movement in Scene #6100 when mouse is in the centre of the screen


Commit: ef282206b059e32257204c0e154f2e8b49bf3a59
    https://github.com/scummvm/scummvm/commit/ef282206b059e32257204c0e154f2e8b49bf3a59
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2011-05-10T03:50:40-07:00

Commit Message:
TSAGE: Tweaked mouse movement in Scene #6100 when mouse is in the centre of the screen

Changed paths:
    engines/tsage/ringworld_scenes1.cpp



diff --git a/engines/tsage/ringworld_scenes1.cpp b/engines/tsage/ringworld_scenes1.cpp
index 9811cd5..9dafcba 100644
--- a/engines/tsage/ringworld_scenes1.cpp
+++ b/engines/tsage/ringworld_scenes1.cpp
@@ -3250,7 +3250,8 @@ void Scene6100::dispatch() {
 
 	// Handle mouse controlling the turning
 	int changeAmount = (_globals->_events._mousePos.x - 160) / -20;
-	_turnAmount += (changeAmount - _turnAmount) / 2;
+	int turnDifference = (changeAmount - _turnAmount) / 2;
+	_turnAmount = !turnDifference ? 0 : _turnAmount + turnDifference;
 
 	if (_fadePercent < 100) {
 		_fadePercent += 10;






More information about the Scummvm-git-logs mailing list