Jump to content

[fix] map liquid extraction bug


Auntie Mangos

Recommended Posts

  • 40 years later...
  • 2 weeks later...

Hm i'm not sure this is really correct.

currently, core assumes flat water and only uses the lower left vertex of a liquid tile, no interpolation/tesselation performed. So those "omitted" values are actually never used from what i can tell.

Technically, the (maximum) amount of height values is liquid_height[ADT_CELLS_PER_GRID*(ADT_CELL_SIZE+1)][ADT_CELLS_PER_GRID*(ADT_CELL_SIZE+1)]

and not liquid_height[ADT_GRID_SIZE+1][ADT_GRID_SIZE+1]

Actually, System.cpp:675 does overwrite values, which is only okay if liquid data never has abrupt height changes between cells, but in any case the client data definitely allows it.

-edit-

I just modified extractor, in Northrend 3 values are overwritten with differing heights, and in Azjol_LowerCity 14 values are overwritten, so liquid meshes can be discontinuous across cell borders.

Probably a minor issue, but still current data is incomplete...

Link to comment
Share on other sites

  • 6 months later...
  • 11 months later...
  • 1 month later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use