diff options
author | Strangerke | 2012-02-24 23:55:17 +0100 |
---|---|---|
committer | Strangerke | 2012-04-06 08:22:00 +0200 |
commit | b414beeff286c6138e6c50235b54de4925a97934 (patch) | |
tree | a506c874f0bcfb2dc5e1fb9a0bd7e72698c5c88b /engines/mortevielle/graphics.cpp | |
parent | 3a8a15e201f36a7f33e73cc88c68378013ddb0de (diff) | |
download | scummvm-rg350-b414beeff286c6138e6c50235b54de4925a97934.tar.gz scummvm-rg350-b414beeff286c6138e6c50235b54de4925a97934.tar.bz2 scummvm-rg350-b414beeff286c6138e6c50235b54de4925a97934.zip |
MORTEVIELLE: clean up while statements using separate 'not'
Diffstat (limited to 'engines/mortevielle/graphics.cpp')
-rw-r--r-- | engines/mortevielle/graphics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mortevielle/graphics.cpp b/engines/mortevielle/graphics.cpp index acc2bb0d34..7511b21ce2 100644 --- a/engines/mortevielle/graphics.cpp +++ b/engines/mortevielle/graphics.cpp @@ -1117,7 +1117,7 @@ void ScreenSurface::drawLine(int x, int y, int xx, int yy, int coul) { do { g_vm->_screenSurface.setPixel(Common::Point(abs((int)(a * i + b)), i), coul); i = i + step; - } while (!(i == yy)); + } while (i != yy); } else { a = (float)((y - yy)) / (x - xx); b = ((yro * xr) - (yr * xro)) / (x - xx); @@ -1127,7 +1127,7 @@ void ScreenSurface::drawLine(int x, int y, int xx, int yy, int coul) { do { g_vm->_screenSurface.setPixel(Common::Point(i, abs((int)(a * i + b))), coul); i = i + step; - } while (!(i == xx)); + } while (i != xx); } } |