mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
- flags7 variable added to AActor.
This commit is contained in:
parent
ecfe67dd78
commit
f2c250d35d
7 changed files with 16 additions and 4 deletions
|
@ -837,6 +837,7 @@ public:
|
|||
DWORD flags4; // [RH] Even more flags!
|
||||
DWORD flags5; // OMG! We need another one.
|
||||
DWORD flags6; // Shit! Where did all the flags go?
|
||||
DWORD flags7; //
|
||||
|
||||
// [BB] If 0, everybody can see the actor, if > 0, only members of team (VisibleToTeam-1) can see it.
|
||||
DWORD VisibleToTeam;
|
||||
|
|
|
@ -311,6 +311,7 @@ void cht_DoCheat (player_t *player, int cheat)
|
|||
player->mo->flags4 = player->mo->GetDefault()->flags4;
|
||||
player->mo->flags5 = player->mo->GetDefault()->flags5;
|
||||
player->mo->flags6 = player->mo->GetDefault()->flags6;
|
||||
player->mo->flags7 = player->mo->GetDefault()->flags7;
|
||||
player->mo->renderflags &= ~RF_INVISIBLE;
|
||||
player->mo->height = player->mo->GetDefault()->height;
|
||||
player->mo->radius = player->mo->GetDefault()->radius;
|
||||
|
|
|
@ -2644,6 +2644,7 @@ static bool P_CheckForResurrection(AActor *self, bool usevilestates)
|
|||
corpsehit->flags4 = info->flags4;
|
||||
corpsehit->flags5 = info->flags5;
|
||||
corpsehit->flags6 = info->flags6;
|
||||
corpsehit->flags7 = info->flags7;
|
||||
corpsehit->health = info->health;
|
||||
corpsehit->target = NULL;
|
||||
corpsehit->lastenemy = NULL;
|
||||
|
|
|
@ -200,8 +200,12 @@ void AActor::Serialize (FArchive &arc)
|
|||
<< flags3
|
||||
<< flags4
|
||||
<< flags5
|
||||
<< flags6
|
||||
<< special1
|
||||
<< flags6;
|
||||
if (SaveVersion >= 4504)
|
||||
{
|
||||
arc << flags7;
|
||||
}
|
||||
arc << special1
|
||||
<< special2
|
||||
<< health
|
||||
<< movedir
|
||||
|
@ -6133,6 +6137,9 @@ void PrintMiscActorInfo(AActor *query)
|
|||
Printf("\n\tflags6: %x", query->flags6);
|
||||
for (flagi = 0; flagi <= 31; flagi++)
|
||||
if (query->flags6 & 1<<flagi) Printf(" %s", FLAG_NAME(1<<flagi, flags6));
|
||||
Printf("\n\tflags7: %x", query->flags7);
|
||||
for (flagi = 0; flagi <= 31; flagi++)
|
||||
if (query->flags7 & 1<<flagi) Printf(" %s", FLAG_NAME(1<<flagi, flags7));
|
||||
Printf("\nBounce flags: %x\nBounce factors: f:%f, w:%f",
|
||||
query->BounceFlags, FIXED2FLOAT(query->bouncefactor),
|
||||
FIXED2FLOAT(query->wallbouncefactor));
|
||||
|
|
|
@ -452,6 +452,7 @@ bool P_Thing_Raise(AActor *thing)
|
|||
thing->flags4 = info->flags4;
|
||||
thing->flags5 = info->flags5;
|
||||
thing->flags6 = info->flags6;
|
||||
thing->flags7 = info->flags7;
|
||||
thing->health = info->health;
|
||||
thing->target = NULL;
|
||||
thing->lastenemy = NULL;
|
||||
|
|
|
@ -1286,7 +1286,8 @@ DEFINE_PROPERTY(clearflags, 0, Actor)
|
|||
defaults->flags3 =
|
||||
defaults->flags4 =
|
||||
defaults->flags5 =
|
||||
defaults->flags6 = 0;
|
||||
defaults->flags6 =
|
||||
defaults->flags7 = 0;
|
||||
defaults->flags2 &= MF2_ARGSDEFINED; // this flag must not be cleared
|
||||
}
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ const char *GetVersionString();
|
|||
|
||||
// Use 4500 as the base git save version, since it's higher than the
|
||||
// SVN revision ever got.
|
||||
#define SAVEVER 4503
|
||||
#define SAVEVER 4504
|
||||
|
||||
#define SAVEVERSTRINGIFY2(x) #x
|
||||
#define SAVEVERSTRINGIFY(x) SAVEVERSTRINGIFY2(x)
|
||||
|
|
Loading…
Reference in a new issue