Revert MINSAVEVER and added FlatAngle DECORATE property expression.

This commit is contained in:
MajorCooke 2016-05-01 11:38:20 -05:00
parent a8248433e9
commit 9ba547e6e3
4 changed files with 8 additions and 3 deletions

View file

@ -300,6 +300,7 @@ xx(ATan2)
xx(VectorAngle) xx(VectorAngle)
xx(Alpha) xx(Alpha)
xx(Angle) xx(Angle)
xx(FlatAngle)
xx(Args) xx(Args)
xx(CeilingZ) xx(CeilingZ)
xx(FloorZ) xx(FloorZ)

View file

@ -262,8 +262,11 @@ void AActor::Serialize(FArchive &arc)
<< projectilepassheight << projectilepassheight
<< Vel << Vel
<< tics << tics
<< state << state;
<< FlatAngle; if (SaveVersion >= 4545)
{
arc << FlatAngle;
}
if (arc.IsStoring()) if (arc.IsStoring())
{ {
int dmg; int dmg;

View file

@ -627,6 +627,7 @@ void InitThingdef()
PType *array5 = NewArray(TypeSInt32, 5); PType *array5 = NewArray(TypeSInt32, 5);
symt.AddSymbol(new PField(NAME_Alpha, TypeFloat64, VARF_Native, myoffsetof(AActor,Alpha))); symt.AddSymbol(new PField(NAME_Alpha, TypeFloat64, VARF_Native, myoffsetof(AActor,Alpha)));
symt.AddSymbol(new PField(NAME_Angle, TypeFloat64, VARF_Native, myoffsetof(AActor,Angles.Yaw))); symt.AddSymbol(new PField(NAME_Angle, TypeFloat64, VARF_Native, myoffsetof(AActor,Angles.Yaw)));
symt.AddSymbol(new PField(NAME_FlatAngle, TypeFloat64, VARF_Native, myoffsetof(AActor,FlatAngle)));
symt.AddSymbol(new PField(NAME_Args, array5, VARF_Native, myoffsetof(AActor,args))); symt.AddSymbol(new PField(NAME_Args, array5, VARF_Native, myoffsetof(AActor,args)));
symt.AddSymbol(new PField(NAME_CeilingZ, TypeFloat64, VARF_Native, myoffsetof(AActor,ceilingz))); symt.AddSymbol(new PField(NAME_CeilingZ, TypeFloat64, VARF_Native, myoffsetof(AActor,ceilingz)));
symt.AddSymbol(new PField(NAME_FloorZ, TypeFloat64, VARF_Native, myoffsetof(AActor,floorz))); symt.AddSymbol(new PField(NAME_FloorZ, TypeFloat64, VARF_Native, myoffsetof(AActor,floorz)));

View file

@ -72,7 +72,7 @@ const char *GetVersionString();
// SAVESIG should match SAVEVER. // SAVESIG should match SAVEVER.
// MINSAVEVER is the minimum level snapshot version that can be loaded. // MINSAVEVER is the minimum level snapshot version that can be loaded.
#define MINSAVEVER 4546 #define MINSAVEVER 4545
// Use 4500 as the base git save version, since it's higher than the // Use 4500 as the base git save version, since it's higher than the
// SVN revision ever got. // SVN revision ever got.