File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments