mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-25 16:30:15 +00:00
Fix WMO MOHD chunk parsing by adding missing nTextures field
The MOHD header structure was missing the nTextures field at the start, causing all subsequent field reads to be offset by 4 bytes. This corrupted bounding box values and caused floor geometry to be incorrectly culled.
This commit is contained in:
parent
a9dd685398
commit
665a73e75f
2 changed files with 10 additions and 4 deletions
|
|
@ -149,8 +149,9 @@ struct WMOGroup {
|
|||
|
||||
// Complete WMO Model
|
||||
struct WMOModel {
|
||||
// Root WMO data
|
||||
// Root WMO data (from MOHD chunk)
|
||||
uint32_t version;
|
||||
uint32_t nTextures; // Added - was missing, caused offset issues
|
||||
uint32_t nGroups;
|
||||
uint32_t nPortals;
|
||||
uint32_t nLights;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue