aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v2.cpp
diff options
context:
space:
mode:
authorMax Horn2003-05-10 21:49:59 +0000
committerMax Horn2003-05-10 21:49:59 +0000
commitacb35fc915284cb3b194ba8864eb24e39fff992e (patch)
treedfc1dd77fcda48c14ee8ea0e898cdbd023a14344 /scumm/script_v2.cpp
parente5fe73726a554d312f30682508d2474c8734b0ef (diff)
downloadscummvm-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_v2.cpp')
-rw-r--r--scumm/script_v2.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp
index a51e786bb1..36eca65518 100644
--- a/scumm/script_v2.cpp
+++ b/scumm/script_v2.cpp
@@ -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;