renamed _scrWidth/_scrHeight -> _roomWidht/_roomHeight, and _realWidth/_realHeight -> _screenWidth/_screenHeight (inspired by MadMoose, but I'll take the blame - still this seems much more logical & intuitive)
svn-id: r7423
This commit is contained in:
parent
e5fe73726a
commit
acb35fc915
21 changed files with 222 additions and 222 deletions
|
@ -1030,14 +1030,14 @@ void Scumm_v2::o2_roomOps() {
|
|||
_opcode = fetchScriptByte();
|
||||
switch (_opcode & 0x1F) {
|
||||
case 1: /* room scroll */
|
||||
if (a < (_realWidth / 2))
|
||||
a = (_realWidth / 2);
|
||||
if (b < (_realWidth / 2))
|
||||
b = (_realWidth / 2);
|
||||
if (a > _scrWidth - (_realWidth / 2))
|
||||
a = _scrWidth - (_realWidth / 2);
|
||||
if (b > _scrWidth - (_realWidth / 2))
|
||||
b = _scrWidth - (_realWidth / 2);
|
||||
if (a < (_screenWidth / 2))
|
||||
a = (_screenWidth / 2);
|
||||
if (b < (_screenWidth / 2))
|
||||
b = (_screenWidth / 2);
|
||||
if (a > _roomWidth - (_screenWidth / 2))
|
||||
a = _roomWidth - (_screenWidth / 2);
|
||||
if (b > _roomWidth - (_screenWidth / 2))
|
||||
b = _roomWidth - (_screenWidth / 2);
|
||||
VAR(VAR_CAMERA_MIN_X) = a;
|
||||
VAR(VAR_CAMERA_MAX_X) = b;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue