code duplication prune. should aid in stability

This commit is contained in:
AzaezelX 2021-10-03 02:56:26 -05:00
parent 10f2453cee
commit 98a079a797
123 changed files with 632 additions and 966 deletions

View file

@ -53,7 +53,7 @@ ForestItemData::ForestItemData()
mTightnessCoefficient( 0.4f ),
mDampingCoefficient( 0.7f )
{
INIT_SHAPEASSET(Shape);
INIT_ASSET(Shape);
}
void ForestItemData::initPersistFields()
@ -164,7 +164,7 @@ void ForestItemData::packData(BitStream* stream)
stream->write( localName );
PACKDATA_SHAPEASSET(Shape);
PACKDATA_ASSET(Shape);
stream->writeFlag( mCollidable );
@ -192,7 +192,7 @@ void ForestItemData::unpackData(BitStream* stream)
char readBuffer[1024];
UNPACKDATA_SHAPEASSET(Shape);
UNPACKDATA_ASSET(Shape);
mCollidable = stream->readFlag();