[DiscordArchive] Did blizz actually wrote 'while (1)' in their source code?
[DiscordArchive] Did blizz actually wrote 'while (1)' in their source code?
Archived author: Thulz • Posted: 2024-06-02T01:23:14.652000+00:00
Original source
Did blizz actually wrote 'while (1)' in their source code?
Archived author: Thulz • Posted: 2024-06-02T01:23:20.176000+00:00
Original source
or why does it look like that
Archived author: Azarchius • Posted: 2024-06-02T01:23:35.726000+00:00
Original source
Though I definitely do not understand what MLFD is trying to do. if MLFD _does_ exist... it seems to call InitializePVSDoodad 3 times, with m2lod length/offset as the "combinations" of doodads.
But if MLFD doesn't exist, it calls InitializePVSDoodad _once_, with offset 0, and length = mldd_count, so every single doodad in that Area.
So this is a "LOD level", I get it. And in each LOD level, there is a linked list of PBSObjListDoodad, each containing a maximum of 16 entities. Trying to figure out how exactly the lod level comes into play here...
![[Image: image.png?ex=690ca198&is=690b5018&hm=ab9...1f5170c7c&]](https://cdn.discordapp.com/attachments/1086807686571642900/1246635565680431186/image.png?ex=690ca198&is=690b5018&hm=ab9e30428a03ceca7f9d4560a9d03c347ab19d53d32611983521f541f5170c7c&)
Archived author: Azarchius • Posted: 2024-06-02T01:24:40.272000+00:00
Original source
No it's just IDA fucking up. I managed to get another one fixed a few minutes ago by mapping a var.
The one that handles PVSCells for WMOs is practically copy-pasted code with a few small differences, but looks normal. (fields may be wrong; `v26` incorrectly uses same structure as `v25`)
![[Image: image.png?ex=690ca198&is=690b5018&hm=ab9...1f5170c7c&]](https://cdn.discordapp.com/attachments/1086807686571642900/1246635565680431186/image.png?ex=690ca198&is=690b5018&hm=ab9e30428a03ceca7f9d4560a9d03c347ab19d53d32611983521f541f5170c7c&)