From 0ee57f4257d9ae933a597e9be115788cb7ea5e97 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Sun, 29 Mar 2026 19:43:57 -0700 Subject: [PATCH] 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). --- src/pipeline/m2_loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipeline/m2_loader.cpp b/src/pipeline/m2_loader.cpp index b1f82973..2454fd68 100644 --- a/src/pipeline/m2_loader.cpp +++ b/src/pipeline/m2_loader.cpp @@ -575,7 +575,7 @@ void parseAnimTrackVanilla(const std::vector& data, // FBlocks are like M2Track but WITHOUT the interpolationType/globalSequence prefix. void parseFBlock(const std::vector& 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(data, offset);