From 17e74e9a371e4d6636882a1660f007c06715ec6f Mon Sep 17 00:00:00 2001 From: Strangerke Date: Fri, 10 Oct 2014 20:47:37 +0200 Subject: PRINCE: rename a couple of variables named "rand" --- engines/prince/prince.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'engines') diff --git a/engines/prince/prince.cpp b/engines/prince/prince.cpp index 7c7334ff41..29c434e9c9 100644 --- a/engines/prince/prince.cpp +++ b/engines/prince/prince.cpp @@ -1656,13 +1656,13 @@ void PrinceEngine::doZoomIn(int slot) { src2 += x; dst2 += x; while (w > 0) { - int rand = _randomSource.getRandomNumber(zoomInStep - 1); - if (rand < w) { - *(dst2 + rand) = *(src2 + rand); + int randVal = _randomSource.getRandomNumber(zoomInStep - 1); + if (randVal < w) { + *(dst2 + randVal) = *(src2 + randVal); src2 += zoomInStep; dst2 += zoomInStep; } else if (y + 1 != surfaceHeight) { - *(dst1 + orgSurface->pitch + rand - w) = *(src1 + orgSurface->pitch + rand - w); + *(dst1 + orgSurface->pitch + randVal - w) = *(src1 + orgSurface->pitch + randVal - w); } w -= zoomInStep; } @@ -1687,12 +1687,12 @@ void PrinceEngine::doZoomOut(int slot) { int w = orgSurface->w - x; dst2 += x; while (w > 0) { - int rand = _randomSource.getRandomNumber(zoomInStep - 1); - if (rand < w) { - *(dst2 + rand) = 255; + int randVal = _randomSource.getRandomNumber(zoomInStep - 1); + if (randVal < w) { + *(dst2 + randVal) = 255; dst2 += zoomInStep; } else if (y + 1 != surfaceHeight) { - *(dst1 + orgSurface->pitch + rand - w) = 255; + *(dst1 + orgSurface->pitch + randVal - w) = 255; } w -= zoomInStep; } -- cgit v1.2.3