aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authoruruk2013-08-08 21:40:41 +0200
committeruruk2013-08-08 21:40:41 +0200
commitad199c4929c9e0e3a3be9097b21338d3617c6f1b (patch)
tree0883e435671c38513d0eb4391c1b5347acb8dd7e /engines
parentae2d657dc6119b7804a9e63032a1990248b70f56 (diff)
downloadscummvm-rg350-ad199c4929c9e0e3a3be9097b21338d3617c6f1b.tar.gz
scummvm-rg350-ad199c4929c9e0e3a3be9097b21338d3617c6f1b.tar.bz2
scummvm-rg350-ad199c4929c9e0e3a3be9097b21338d3617c6f1b.zip
AVALANCHE: Repair Graphics::drawArc().
Diffstat (limited to 'engines')
-rw-r--r--engines/avalanche/graphics.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/avalanche/graphics.cpp b/engines/avalanche/graphics.cpp
index 0042631b74..c7774ed362 100644
--- a/engines/avalanche/graphics.cpp
+++ b/engines/avalanche/graphics.cpp
@@ -191,11 +191,14 @@ Common::Point Graphics::drawArc(const ::Graphics::Surface &surface, int16 x, int
if ((j >= stAngle) && (j <= endAngle))
*(byte *)_scrolls.getBasePtr(xp,yp) = color;
- else if (((180-j) >= stAngle) && ((180-j) <= endAngle))
+
+ if (((180-j) >= stAngle) && ((180-j) <= endAngle))
*(byte *)_scrolls.getBasePtr(xm,yp) = color;
- else if (((j+180) >= stAngle) && ((j+180) <= endAngle))
+
+ if (((j+180) >= stAngle) && ((j+180) <= endAngle))
*(byte *)_scrolls.getBasePtr(xm,ym) = color;
- else if (((360-j) >= stAngle) && ((360-j) <= endAngle))
+
+ if (((360-j) >= stAngle) && ((360-j) <= endAngle))
*(byte *)_scrolls.getBasePtr(xp,ym) = color;
j += delta;