aboutsummaryrefslogtreecommitdiff
path: root/engines/prince/prince.cpp
diff options
context:
space:
mode:
authorStrangerke2014-10-10 20:47:37 +0200
committerStrangerke2014-10-10 20:47:37 +0200
commit17e74e9a371e4d6636882a1660f007c06715ec6f (patch)
treed88ba0d90f564014c61361c6a94cef8184121947 /engines/prince/prince.cpp
parent5c012f8e01efc76dc777015487d145ba81451851 (diff)
downloadscummvm-rg350-17e74e9a371e4d6636882a1660f007c06715ec6f.tar.gz
scummvm-rg350-17e74e9a371e4d6636882a1660f007c06715ec6f.tar.bz2
scummvm-rg350-17e74e9a371e4d6636882a1660f007c06715ec6f.zip
PRINCE: rename a couple of variables named "rand"
Diffstat (limited to 'engines/prince/prince.cpp')
-rw-r--r--engines/prince/prince.cpp16
1 files changed, 8 insertions, 8 deletions
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;
}