mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-15 00:43:52 +00:00
fix: FBlock comment said 'CImVector 4 bytes RGBA' but code reads C3Vector
The comment would lead a maintainer to "fix" the working code to read 4-byte RGBA instead of 3-float C3Vector. Updated to match the actual M2 particle FBlock color format (3 floats, values 0-255, per WoWDev).
This commit is contained in:
parent
d731e0112e
commit
0ee57f4257
1 changed files with 1 additions and 1 deletions
|
|
@ -575,7 +575,7 @@ void parseAnimTrackVanilla(const std::vector<uint8_t>& data,
|
|||
// FBlocks are like M2Track but WITHOUT the interpolationType/globalSequence prefix.
|
||||
void parseFBlock(const std::vector<uint8_t>& data, uint32_t offset,
|
||||
M2FBlock& fb, int valueType) {
|
||||
// valueType: 0 = color (CImVector, 4 bytes RGBA), 1 = alpha (uint16), 2 = scale (float pair)
|
||||
// valueType: 0 = color (C3Vector, 3 floats in 0-255 range), 1 = alpha (uint16), 2 = scale (float pair)
|
||||
if (offset + sizeof(FBlockDisk) > data.size()) return;
|
||||
|
||||
FBlockDisk disk = readValue<FBlockDisk>(data, offset);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue