aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2003-08-11 06:24:19 +0000
committerTravis Howell2003-08-11 06:24:19 +0000
commit82328fa0503354f0f550bfa0ad10c393bb22cb9a (patch)
tree4c7940ce9cad047690618fb575e4aba604904331 /scumm
parent5a1b0ac24ac4d3c060ddc6336f39dbf05f2672ac (diff)
downloadscummvm-rg350-82328fa0503354f0f550bfa0ad10c393bb22cb9a.tar.gz
scummvm-rg350-82328fa0503354f0f550bfa0ad10c393bb22cb9a.tar.bz2
scummvm-rg350-82328fa0503354f0f550bfa0ad10c393bb22cb9a.zip
Ooops that should only be for Amiga scumm 5 games.
svn-id: r9637
Diffstat (limited to 'scumm')
-rw-r--r--scumm/costume.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/scumm/costume.cpp b/scumm/costume.cpp
index 2ad73cafac..09399511bf 100644
--- a/scumm/costume.cpp
+++ b/scumm/costume.cpp
@@ -69,11 +69,14 @@ byte CostumeRenderer::mainRoutine(int xmoveCur, int ymoveCur) {
uint scal;
bool use_scaling;
byte startScaleIndexX;
+ byte newAmiCost;
int ex1, ex2;
int y_top, y_bottom;
int x_left, x_right;
int step;
+ newAmiCost = (_vm->_version == 5) && (_vm->_features & GF_AMIGA);
+
CHECK_HEAP
v1.scaletable = cost_scaleTable;
@@ -205,7 +208,7 @@ byte CostumeRenderer::mainRoutine(int xmoveCur, int ymoveCur) {
if (!use_scaling)
skip = -v1.x;
if (skip > 0) {
- if (!(_vm->_features & GF_AMIGA)) {
+ if (!newAmiCost) {
v1.skip_width -= skip;
if (_loaded._format == 0x57)
@@ -226,7 +229,7 @@ byte CostumeRenderer::mainRoutine(int xmoveCur, int ymoveCur) {
if (!use_scaling)
skip = x_right - _vm->_screenWidth;
if (skip > 0) {
- if (!(_vm->_features & GF_AMIGA)) {
+ if (!newAmiCost) {
v1.skip_width -= skip;
if (_loaded._format == 0x57)
@@ -275,7 +278,7 @@ byte CostumeRenderer::mainRoutine(int xmoveCur, int ymoveCur) {
if (_loaded._format == 0x57)
procC64();
- else if (_vm->_features & GF_AMIGA && _vm->_version == 5)
+ else if (newAmiCost)
proc3_ami();
else
proc3();