diff options
author | yinsimei | 2017-06-16 18:00:23 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-13 18:27:45 +0200 |
commit | e52dbca7fd9cd972f529f38346a2706a519cc310 (patch) | |
tree | 9ae7fac87ba343f813c5d08a3782a3bf22568d7f | |
parent | 536ddf7e89b2b1d3c4541944dff3779c6551c5a7 (diff) | |
download | scummvm-rg350-e52dbca7fd9cd972f529f38346a2706a519cc310.tar.gz scummvm-rg350-e52dbca7fd9cd972f529f38346a2706a519cc310.tar.bz2 scummvm-rg350-e52dbca7fd9cd972f529f38346a2706a519cc310.zip |
SLUDGE: remove unused variable in parallaxLayer
-rw-r--r-- | engines/sludge/backdrop.cpp | 4 | ||||
-rw-r--r-- | engines/sludge/backdrop.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/sludge/backdrop.cpp b/engines/sludge/backdrop.cpp index 3904cf5f86..dc46c410b1 100644 --- a/engines/sludge/backdrop.cpp +++ b/engines/sludge/backdrop.cpp @@ -735,7 +735,7 @@ bool loadParallax(unsigned short v, unsigned short fracX, unsigned short fracY) if (fracX == 65535) { nP->wrapS = false; - if (nP->width < winWidth) { + if (nP->surface.w < winWidth) { fatal("For AUTOFIT parallax backgrounds, the image must be at least as wide as the game window/screen."); return false; } @@ -745,7 +745,7 @@ bool loadParallax(unsigned short v, unsigned short fracX, unsigned short fracY) if (fracY == 65535) { nP->wrapT = false; - if (nP->height < winHeight) { + if (nP->surface.h < winHeight) { fatal("For AUTOFIT parallax backgrounds, the image must be at least as tall as the game window/screen."); return false; } diff --git a/engines/sludge/backdrop.h b/engines/sludge/backdrop.h index e614c4af2f..216b656678 100644 --- a/engines/sludge/backdrop.h +++ b/engines/sludge/backdrop.h @@ -40,7 +40,7 @@ extern int lightMapMode; struct parallaxLayer { Graphics::Surface surface; - int width, height, speedX, speedY; + int speedX, speedY; bool wrapS, wrapT; unsigned short fileNum, fractionX, fractionY; int cameraX, cameraY; |