Skip to content

Commit

Permalink
Draw_ValidateCustomLogo: Fixed incorrect offset to palette size
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed Mar 26, 2024
1 parent ec47e4d commit 3c282b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rehlds/engine/decals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -756,8 +756,8 @@ qboolean Draw_ValidateCustomLogo(cachewad_t *wad, unsigned char *data, lumpinfo_
Con_Printf("%s: Bad cached wad size %i/%i on %s\n", __func__, size + sizeof(miptex_t), lump->size + wad->cacheExtra, wad->name);
}

paloffset = size + sizeof(lumpinfo_t) + sizeof(miptex_t);
palettesize = *(u_short *)(data + paloffset); // Get palette size
paloffset = size + sizeof(miptex_t);
palettesize = *(u_short *)(data + wad->cacheExtra + paloffset); // Get palette size

for (i = 0; i < 3; i++)
{
Expand Down

1 comment on commit 3c282b4

@SmilexGamer
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed, custom logos are now drawn after this commit.

Please sign in to comment.