Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Fix BSPDecal parsing #8

Closed
wants to merge 1 commit into from
Closed

Fix BSPDecal parsing #8

wants to merge 1 commit into from

Conversation

7x11x13
Copy link

@7x11x13 7x11x13 commented Nov 3, 2018

I was getting the same error in many demos after parsing BSPDecal packets so I decided to take a look.

https://github.com/VSES/SourceEngine2007/blob/43a5c90a5ada1e69ca044595383be67f40b33c61/src_main/common/netmessages.cpp#L533

Here the number of bits read for the model index is the constant SP_MODEL_INDEX_BITS, which in the 2013 SDK is 13:

https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dceea4310fde5706b3ce1c70609d72a38efdf/mp/src/public/const.h#L62

However currently only 12 bits are being read; changing it to 13 worked on the demos I tested.

@7x11x13 7x11x13 closed this Jul 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant