- Split weaveindex into two separate byte-sized properties and moved them into unused space
inside AActor. SVN r2038 (trunk)
This commit is contained in:
parent
611834ea2a
commit
d2a4339816
6 changed files with 47 additions and 19 deletions
|
|
@ -312,13 +312,34 @@ void AActor::Serialize (FArchive &arc)
|
|||
{
|
||||
arc << DamageFactor;
|
||||
}
|
||||
if (SaveVersion >= 2036)
|
||||
if (SaveVersion > 2036)
|
||||
{
|
||||
arc << weaveindex;
|
||||
arc << WeaveIndexXY << WeaveIndexZ;
|
||||
}
|
||||
else
|
||||
{
|
||||
weaveindex = special2;
|
||||
int index;
|
||||
|
||||
if (SaveVersion < 2036)
|
||||
{
|
||||
index = special2;
|
||||
}
|
||||
else
|
||||
{
|
||||
arc << index;
|
||||
}
|
||||
// A_BishopMissileWeave and A_CStaffMissileSlither stored the weaveXY
|
||||
// value in different parts of the index.
|
||||
if (this->IsKindOf(PClass::FindClass("BishopFX")))
|
||||
{
|
||||
WeaveIndexXY = index >> 16;
|
||||
WeaveIndexZ = index;
|
||||
}
|
||||
else
|
||||
{
|
||||
WeaveIndexXY = index;
|
||||
WeaveIndexZ = 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Skip past uservar array in old savegames
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue