mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-13 07:57:52 +00:00
Revert MINSAVEVER and added FlatAngle DECORATE property expression.
This commit is contained in:
parent
a8248433e9
commit
9ba547e6e3
4 changed files with 8 additions and 3 deletions
|
@ -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)
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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)));
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue