diff options
author | Max Horn | 2003-05-10 21:49:59 +0000 |
---|---|---|
committer | Max Horn | 2003-05-10 21:49:59 +0000 |
commit | acb35fc915284cb3b194ba8864eb24e39fff992e (patch) | |
tree | dfc1dd77fcda48c14ee8ea0e898cdbd023a14344 /scumm/script_v6.cpp | |
parent | e5fe73726a554d312f30682508d2474c8734b0ef (diff) | |
download | scummvm-rg350-acb35fc915284cb3b194ba8864eb24e39fff992e.tar.gz scummvm-rg350-acb35fc915284cb3b194ba8864eb24e39fff992e.tar.bz2 scummvm-rg350-acb35fc915284cb3b194ba8864eb24e39fff992e.zip |
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
Diffstat (limited to 'scumm/script_v6.cpp')
-rw-r--r-- | scumm/script_v6.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp index b3a4e90804..16f04701dd 100644 --- a/scumm/script_v6.cpp +++ b/scumm/script_v6.cpp @@ -1460,14 +1460,14 @@ void Scumm_v6::o6_roomOps() { case 172: /* room scroll */ b = pop(); a = pop(); - 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; @@ -1475,7 +1475,7 @@ void Scumm_v6::o6_roomOps() { case 174: /* set screen */ b = pop(); a = pop(); - initScreens(0, a, _realWidth, b); + initScreens(0, a, _screenWidth, b); break; case 175: /* set palette color */ @@ -2952,7 +2952,7 @@ void Scumm_v6::o6_unknownE1() { int y = pop(); int x = pop(); - if (x > _realWidth - 1) { + if (x > _screenWidth - 1) { push(-1); return; } @@ -2973,7 +2973,7 @@ void Scumm_v6::o6_unknownE1() { return; } - int offset = (y - vs->topline) * _realWidth + x + _screenLeft; + int offset = (y - vs->topline) * _screenWidth + x + _screenLeft; byte area = *(getResourceAddress(rtBuffer, vs->number + 1) + offset); push(area); |