[Scummvm-cvs-logs] SF.net SVN: scummvm:[42740] scummvm/trunk/engines/scumm/verbs.cpp

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Sat Jul 25 09:17:37 CEST 2009


Revision: 42740
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42740&view=rev
Author:   Kirben
Date:     2009-07-25 07:17:37 +0000 (Sat, 25 Jul 2009)

Log Message:
-----------
Whitespace changes.

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/verbs.cpp

Modified: scummvm/trunk/engines/scumm/verbs.cpp
===================================================================
--- scummvm/trunk/engines/scumm/verbs.cpp	2009-07-25 06:55:28 UTC (rev 42739)
+++ scummvm/trunk/engines/scumm/verbs.cpp	2009-07-25 07:17:37 UTC (rev 42740)
@@ -699,11 +699,9 @@
 	Actor *a = derefActor(VAR(VAR_EGO), "checkExecVerbs");
 	Actor *a2 =derefActor(actor, "checkExecVerbs");
 
-
 	if (!a->_moving) {
 		int dist =  getDist(a->getRealPos().x, a->getRealPos().y, a2->getRealPos().x, a2->getRealPos().y);
-
-		if (dist>5)
+		if (dist > 5)
 			a->startWalkActor(a2->getRealPos().x, a2->getRealPos().y, 1);
 		else
 			return false;
@@ -731,13 +729,12 @@
 	int dist =  getDist(a->getRealPos().x, a->getRealPos().y, x, y);
 
 	// FIXME: This should be changed once the walkbox problem is fixed
-	if (dist>0x5) {
+	if (dist > 0x5) {
 		a->startWalkActor(x, y, dir);
 		VAR(6) = x;
 		VAR(7) = y;
 		return true;
 	} else {
-
 		// Finished walk, are we picking up the item?
 		if (_verbPickup) {
 			int oldActive = _activeObject, oldIndex = _activeObjectIndex;
@@ -855,7 +852,6 @@
 	if (_activeVerb == 3 && _activeInventory && _activeActor) {
 		// FIXME: Actors need to turn and face each other
 		// And walk to each other
-		//
 		if (verbMoveToActor(_activeActor))
 			return true;
 
@@ -914,7 +910,6 @@
 		_v0ObjectIndex = false;
 	} else if (_activeInventory) {
 		if (verbExecutes(_activeInventory, true) == false) {
-			
 			if (_activeObject2 && verbExecutes(_activeObject2, true)) {
 				_v0ObjectInInventory = true;
 				
@@ -950,7 +945,6 @@
 
 	// Is a verb currently executing
 	if (_verbExecuting) {
-
 		// Check if mouse click
 		if (_mouseAndKeyboardStat & MBS_MOUSE_MASK) {
 			int over = findVerbAtPos(_mouse.x, _mouse.y);
@@ -1026,7 +1020,6 @@
 
 			if (_activeVerb == 11 && !((!(_activeObject || _activeInventory)) || !_activeObject2))
 				return;
-
 		} else {
 			int over = findVerbAtPos(_mouse.x, _mouse.y);
 			int act  = getActorFromPos(_virtualMouse.x, _virtualMouse.y);
@@ -1062,7 +1055,6 @@
 			
 			// Clicked on nothing, walk here?
 			if (!over && !act && _activeVerb == 13 && !obj && _currentMode != 0) {
-
 				// Clear all selected
 				resetSentence();
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list