Add support for Aurora's extended land layer codes to llvlmanager.cpp
This commit is contained in:
@@ -44,6 +44,11 @@
|
|||||||
|
|
||||||
LLVLManager gVLManager;
|
LLVLManager gVLManager;
|
||||||
|
|
||||||
|
// Extended land layer for Aurora Sim
|
||||||
|
const char AURORA_LAND_LAYER_CODE = 'M';
|
||||||
|
const char AURORA_WIND_LAYER_CODE = '9';
|
||||||
|
const char AURORA_CLOUD_LAYER_CODE = ':';
|
||||||
|
|
||||||
LLVLManager::~LLVLManager()
|
LLVLManager::~LLVLManager()
|
||||||
{
|
{
|
||||||
S32 i;
|
S32 i;
|
||||||
@@ -56,15 +61,15 @@ LLVLManager::~LLVLManager()
|
|||||||
|
|
||||||
void LLVLManager::addLayerData(LLVLData *vl_datap, const S32 mesg_size)
|
void LLVLManager::addLayerData(LLVLData *vl_datap, const S32 mesg_size)
|
||||||
{
|
{
|
||||||
if (LAND_LAYER_CODE == vl_datap->mType)
|
if (LAND_LAYER_CODE == vl_datap->mType || AURORA_LAND_LAYER_CODE == vl_datap->mType)
|
||||||
{
|
{
|
||||||
mLandBits += mesg_size * 8;
|
mLandBits += mesg_size * 8;
|
||||||
}
|
}
|
||||||
else if (WIND_LAYER_CODE == vl_datap->mType)
|
else if (WIND_LAYER_CODE == vl_datap->mType || AURORA_WIND_LAYER_CODE == vl_datap->mType)
|
||||||
{
|
{
|
||||||
mWindBits += mesg_size * 8;
|
mWindBits += mesg_size * 8;
|
||||||
}
|
}
|
||||||
else if (CLOUD_LAYER_CODE == vl_datap->mType)
|
else if (CLOUD_LAYER_CODE == vl_datap->mType || AURORA_CLOUD_LAYER_CODE == vl_datap->mType)
|
||||||
{
|
{
|
||||||
mCloudBits += mesg_size * 8;
|
mCloudBits += mesg_size * 8;
|
||||||
}
|
}
|
||||||
@@ -93,12 +98,16 @@ void LLVLManager::unpackData(const S32 num_packets)
|
|||||||
{
|
{
|
||||||
datap->mRegionp->getLand().decompressDCTPatch(bit_pack, &goph, FALSE);
|
datap->mRegionp->getLand().decompressDCTPatch(bit_pack, &goph, FALSE);
|
||||||
}
|
}
|
||||||
else if (WIND_LAYER_CODE == datap->mType)
|
else if (AURORA_LAND_LAYER_CODE == datap->mType)
|
||||||
|
{
|
||||||
|
datap->mRegionp->getLand().decompressDCTPatch(bit_pack, &goph, TRUE);
|
||||||
|
}
|
||||||
|
else if (WIND_LAYER_CODE == datap->mType || AURORA_WIND_LAYER_CODE == datap->mType)
|
||||||
{
|
{
|
||||||
datap->mRegionp->mWind.decompress(bit_pack, &goph);
|
datap->mRegionp->mWind.decompress(bit_pack, &goph);
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (CLOUD_LAYER_CODE == datap->mType)
|
else if (CLOUD_LAYER_CODE == datap->mType || AURORA_CLOUD_LAYER_CODE == datap->mType)
|
||||||
{
|
{
|
||||||
#if ENABLE_CLASSIC_CLOUDS
|
#if ENABLE_CLASSIC_CLOUDS
|
||||||
datap->mRegionp->mCloudLayer.decompress(bit_pack, &goph);
|
datap->mRegionp->mCloudLayer.decompress(bit_pack, &goph);
|
||||||
|
|||||||
Reference in New Issue
Block a user