CRUISE: Reduce the scope of variables used in the for loops
This commit is contained in:
parent
7d24e1471c
commit
1dbcd74988
17 changed files with 107 additions and 221 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue