mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
"runLength-- > 0" made runLength negative, even though the test failed.
Skins should work again.
This commit is contained in:
parent
9b7b059d5c
commit
8025dfd2ce
1 changed files with 2 additions and 2 deletions
|
@ -115,14 +115,14 @@ LoadPCX (VFile *f, int convert, byte *pal)
|
||||||
count -= runLength;
|
count -= runLength;
|
||||||
|
|
||||||
if (convert) {
|
if (convert) {
|
||||||
while (runLength-- > 0) {
|
for (; runLength > 0; runLength--) {
|
||||||
*pix++ = palette[*dataByte * 3];
|
*pix++ = palette[*dataByte * 3];
|
||||||
*pix++ = palette[*dataByte * 3 + 1];
|
*pix++ = palette[*dataByte * 3 + 1];
|
||||||
*pix++ = palette[*dataByte * 3 + 2];
|
*pix++ = palette[*dataByte * 3 + 2];
|
||||||
*pix++ = 255;
|
*pix++ = 255;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
while (runLength-- > 0) {
|
for (; runLength > 0; runLength--) {
|
||||||
*pix++ = *dataByte;
|
*pix++ = *dataByte;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue