Small order-of-operations fix.

This commit is contained in:
Brian Koropoff 2002-05-24 23:32:34 +00:00
parent 2fe76b39e7
commit 11a14c077e
1 changed files with 2 additions and 2 deletions

View File

@ -295,7 +295,7 @@ R_BuildLightMap (msurface_t *surf, byte * dest, int stride)
bl++; bl++;
*dest++ = min (*bl >> shift, 255); *dest++ = min (*bl >> shift, 255);
bl++; bl++;
*dest++; // set to 255 if RGBA internal format is wanted (*dest)++; // set to 255 if RGBA internal format is wanted
// instead of RGB // instead of RGB
} }
} }
@ -316,7 +316,7 @@ R_BuildLightMap (msurface_t *surf, byte * dest, int stride)
for (i = 0; i < tmax; i++, dest += stride) { for (i = 0; i < tmax; i++, dest += stride) {
for (j = 0; j < smax; j++) { for (j = 0; j < smax; j++) {
*dest++ = min (*bl >> shift, 255); *dest++ = min (*bl >> shift, 255);
*bl++; (*bl)++;
} }
} }
break; break;