mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +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;
|
||||
|
||||
if (convert) {
|
||||
while (runLength-- > 0) {
|
||||
for (; runLength > 0; runLength--) {
|
||||
*pix++ = palette[*dataByte * 3];
|
||||
*pix++ = palette[*dataByte * 3 + 1];
|
||||
*pix++ = palette[*dataByte * 3 + 2];
|
||||
*pix++ = 255;
|
||||
}
|
||||
} else {
|
||||
while (runLength-- > 0) {
|
||||
for (; runLength > 0; runLength--) {
|
||||
*pix++ = *dataByte;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue