diff options
author | jepael | 2019-09-01 21:58:55 +0300 |
---|---|---|
committer | Filippos Karapetis | 2019-09-01 22:46:23 +0300 |
commit | b1b03b18d35d59ad0d712c723a3d4f8c02dcfc18 (patch) | |
tree | fc7926cfad5ae3413ae9f2d81835aa9e6b44f160 /engines/xeen | |
parent | 6d14b6fb564cf64521ffb15e91a25dd91f9629a6 (diff) | |
download | scummvm-rg350-b1b03b18d35d59ad0d712c723a3d4f8c02dcfc18.tar.gz scummvm-rg350-b1b03b18d35d59ad0d712c723a3d4f8c02dcfc18.tar.bz2 scummvm-rg350-b1b03b18d35d59ad0d712c723a3d4f8c02dcfc18.zip |
XEEN: Fix compiler warning
Diffstat (limited to 'engines/xeen')
-rw-r--r-- | engines/xeen/sprites.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/xeen/sprites.cpp b/engines/xeen/sprites.cpp index fdd1f322e4..d6d0cf5154 100644 --- a/engines/xeen/sprites.cpp +++ b/engines/xeen/sprites.cpp @@ -134,33 +134,33 @@ void SpriteResource::draw(XSurface &dest, int frame, const Common::Point &destPo r.clip(SCREEN_WIDTH, _clippedBottom); // Create drawer to handle the rendering - SpriteDrawer *draw; + SpriteDrawer *drawer; switch (flags & SPRFLAG_MODE_MASK) { case SPRFLAG_DRAWER1: - draw = new SpriteDrawer1(_data, _filesize, flags & 0x1F); + drawer = new SpriteDrawer1(_data, _filesize, flags & 0x1F); break; case SPRFLAG_DRAWER2: error("TODO: Sprite drawer mode 2"); case SPRFLAG_DRAWER3: - draw = new SpriteDrawer3(_data, _filesize, flags & 0x1F); + drawer = new SpriteDrawer3(_data, _filesize, flags & 0x1F); break; case SPRFLAG_DRAWER5: - draw = new SpriteDrawer5(_data, _filesize, flags & 0x1F); + drawer = new SpriteDrawer5(_data, _filesize, flags & 0x1F); break; case SPRFLAG_DRAWER6: - draw = new SpriteDrawer6(_data, _filesize, flags & 0x1F); + drawer = new SpriteDrawer6(_data, _filesize, flags & 0x1F); break; default: - draw = new SpriteDrawer(_data, _filesize); + drawer = new SpriteDrawer(_data, _filesize); break; } // Sprites can consist of separate background & foreground - draw->draw(dest, _index[frame]._offset1, destPos, r, flags, scale); + drawer->draw(dest, _index[frame]._offset1, destPos, r, flags, scale); if (_index[frame]._offset2) - draw->draw(dest, _index[frame]._offset2, destPos, r, flags, scale); + drawer->draw(dest, _index[frame]._offset2, destPos, r, flags, scale); - delete draw; + delete drawer; } void SpriteResource::draw(XSurface &dest, int frame) { |