CRUISE: Reduce the scope of variables used in the for loops

This commit is contained in:
Strangerke 2014-06-01 01:21:32 +02:00
parent 7d24e1471c
commit 1dbcd74988
17 changed files with 107 additions and 221 deletions

View file

@ -981,11 +981,9 @@ int16 Op_SetColor() {
int endIdx = popVar();
int startIdx = popVar();
int i;
#define convertRatio 36.571428571428571428571428571429
for (i = startIdx; i <= endIdx; i++) {
for (int i = startIdx; i <= endIdx; i++) {
int offsetTable[3];
offsetTable[0] = (int)(colorR * convertRatio);