Aurora var region support
Firestorm patch by Cinders Adopted from Angstrom viewer with assistance of nhede Core and Revolution Smythe.
This commit is contained in:
@@ -54,6 +54,9 @@
|
||||
|
||||
const F32 CLOUD_DIVERGENCE_COEF = 0.5f;
|
||||
|
||||
// <FS:CR> Aurora Sim
|
||||
#include "llviewerregion.h"
|
||||
// </FS:CR> Aurora Sim
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Construction/Destruction
|
||||
@@ -121,12 +124,18 @@ void LLWind::decompress(LLBitPack &bitpack, LLGroupHeader *group_headerp)
|
||||
set_group_of_patch_header(group_headerp);
|
||||
|
||||
// X component
|
||||
decode_patch_header(bitpack, &patch_header);
|
||||
// <FS:CR> Aurora Sim
|
||||
//decode_patch_header(bitpack, &patch_header);
|
||||
decode_patch_header(bitpack, &patch_header, FALSE);
|
||||
// </FS:CR> Aurora Sim
|
||||
decode_patch(bitpack, buffer);
|
||||
decompress_patch(mVelX, buffer, &patch_header);
|
||||
|
||||
// Y component
|
||||
decode_patch_header(bitpack, &patch_header);
|
||||
// <FS:CR> Aurora Sim
|
||||
//decode_patch_header(bitpack, &patch_header);
|
||||
decode_patch_header(bitpack, &patch_header, FALSE);
|
||||
// </FS:CR> Aurora Sim
|
||||
decode_patch(bitpack, buffer);
|
||||
decompress_patch(mVelY, buffer, &patch_header);
|
||||
|
||||
@@ -254,7 +263,10 @@ LLVector3 LLWind::getVelocity(const LLVector3 &pos_region)
|
||||
|
||||
LLVector3 pos_clamped_region(pos_region);
|
||||
|
||||
F32 region_width_meters = LLWorld::getInstance()->getRegionWidthInMeters();
|
||||
// <FS:CR> Aurora Sim
|
||||
//F32 region_width_meters = LLWorld::getInstance()->getRegionWidthInMeters();
|
||||
F32 region_width_meters = gAgent.getRegion()->getWidth();
|
||||
// </FS:CR> Aurora Sim
|
||||
|
||||
if (pos_clamped_region.mV[VX] < 0.f)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user