Skip to content

Commit 3e136cc

Browse files
committed
- slight rework for ProcessPalletLump
1 parent 0786942 commit 3e136cc

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

src_rebuild/Game/C/cars.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ void MangleWheelModels(void)
12421242
src++;
12431243
}
12441244

1245-
} while (++i < 3);
1245+
}
12461246

12471247
// HACK: Show clean model only in Rio.
12481248
//if (GameLevel == 3)
@@ -1276,24 +1276,23 @@ void ProcessPalletLump(char *lump_ptr, int lump_size)
12761276
texnum = buffPtr[1];
12771277
tpageindex = buffPtr[2];
12781278
clut_number = buffPtr[3];
1279+
buffPtr += 4;
12791280

12801281
if (clut_number == -1)
12811282
{
12821283
// store clut
1283-
LoadImage(&clutpos, (u_long*)(buffPtr + 4));
1284+
LoadImage(&clutpos, (u_long*)buffPtr);
1285+
buffPtr += 8;
12841286

12851287
clutValue = GetClut(clutpos.x, clutpos.y);
1286-
*clutTablePtr++ = clutValue;
1287-
12881288
IncrementClutNum(&clutpos);
12891289

1290-
buffPtr += 12;
1290+
*clutTablePtr++ = clutValue;
12911291
}
12921292
else
12931293
{
12941294
// use stored clut
12951295
clutValue = clutTable[clut_number];
1296-
buffPtr += 4;
12971296
}
12981297

12991298
civ_clut[GetCarPalIndex(tpageindex)][texnum][palette + 1] = clutValue;

0 commit comments

Comments
 (0)