[Scummvm-cvs-logs] scummvm master -> 0a6904c4abc242125532fb797290820834cbb2cf

Kirben kirben at optusnet.com.au
Mon Dec 8 13:33:03 CET 2014


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:
0a6904c4ab SCUMM: Correct variable type in Actor_v0::adjustPosInBorderWalkbox, since variable can have negative value.


Commit: 0a6904c4abc242125532fb797290820834cbb2cf
    https://github.com/scummvm/scummvm/commit/0a6904c4abc242125532fb797290820834cbb2cf
Author: Kirben (kirben at optusnet.com.au)
Date: 2014-12-08T23:31:59+11:00

Commit Message:
SCUMM: Correct variable type in Actor_v0::adjustPosInBorderWalkbox, since variable can have negative value.

Changed paths:
    engines/scumm/actor.cpp



diff --git a/engines/scumm/actor.cpp b/engines/scumm/actor.cpp
index 6cbb2a4..0d7ea39 100644
--- a/engines/scumm/actor.cpp
+++ b/engines/scumm/actor.cpp
@@ -1528,7 +1528,7 @@ AdjustBoxResult Actor_v0::adjustPosInBorderWalkbox(AdjustBoxResult box) {
 	if (!(boxMask & 0x80))
 		return Result;
 
-	byte A;
+	int16 A;
 	boxMask &= 0x7C;
 	if (boxMask == 0x0C) 
 		A = 2;






More information about the Scummvm-git-logs mailing list