mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-12 21:52:12 +00:00
Fixed angleOffsetTargets not being initialized
This commit is contained in:
parent
4726cc9ec5
commit
15fcf60489
2 changed files with 6 additions and 6 deletions
|
@ -306,7 +306,7 @@ void WriteUserInfo(FSerializer &arc, userinfo_t &info);
|
||||||
class player_t
|
class player_t
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
player_t() = default;
|
player_t() { angleOffsetTargets.Zero(); }
|
||||||
~player_t();
|
~player_t();
|
||||||
player_t &operator= (const player_t &p) = delete;
|
player_t &operator= (const player_t &p) = delete;
|
||||||
void CopyFrom(player_t &src, bool copyPSP);
|
void CopyFrom(player_t &src, bool copyPSP);
|
||||||
|
@ -340,7 +340,7 @@ public:
|
||||||
// mo->velx and mo->vely represent true velocity experienced by player.
|
// mo->velx and mo->vely represent true velocity experienced by player.
|
||||||
// This only represents the thrust that the player applies himself.
|
// This only represents the thrust that the player applies himself.
|
||||||
// This avoids anomalies with such things as Boom ice and conveyors.
|
// This avoids anomalies with such things as Boom ice and conveyors.
|
||||||
DVector2 Vel;
|
DVector2 Vel = { 0.0, 0.0 };
|
||||||
|
|
||||||
bool centering = false;
|
bool centering = false;
|
||||||
uint8_t turnticks = 0;
|
uint8_t turnticks = 0;
|
||||||
|
@ -421,8 +421,8 @@ public:
|
||||||
FString SubtitleText;
|
FString SubtitleText;
|
||||||
int SubtitleCounter = 0;
|
int SubtitleCounter = 0;
|
||||||
|
|
||||||
DAngle MinPitch; // Viewpitch limits (negative is up, positive is down)
|
DAngle MinPitch = nullAngle; // Viewpitch limits (negative is up, positive is down)
|
||||||
DAngle MaxPitch;
|
DAngle MaxPitch = nullAngle;
|
||||||
|
|
||||||
double crouchfactor = 0;
|
double crouchfactor = 0;
|
||||||
double crouchoffset = 0;
|
double crouchoffset = 0;
|
||||||
|
@ -432,7 +432,7 @@ public:
|
||||||
|
|
||||||
// [CW] I moved these here for multiplayer conversation support.
|
// [CW] I moved these here for multiplayer conversation support.
|
||||||
TObjPtr<AActor*> ConversationNPC = MakeObjPtr<AActor*>(nullptr), ConversationPC = MakeObjPtr<AActor*>(nullptr);
|
TObjPtr<AActor*> ConversationNPC = MakeObjPtr<AActor*>(nullptr), ConversationPC = MakeObjPtr<AActor*>(nullptr);
|
||||||
DAngle ConversationNPCAngle;
|
DAngle ConversationNPCAngle = nullAngle;
|
||||||
bool ConversationFaceTalker = false;
|
bool ConversationFaceTalker = false;
|
||||||
|
|
||||||
DVector3 LastSafePos = {}; // Mark the last known safe location the player was standing.
|
DVector3 LastSafePos = {}; // Mark the last known safe location the player was standing.
|
||||||
|
|
|
@ -1788,7 +1788,7 @@ void player_t::Serialize(FSerializer &arc)
|
||||||
("musinfoactor", MUSINFOactor)
|
("musinfoactor", MUSINFOactor)
|
||||||
("musinfotics", MUSINFOtics)
|
("musinfotics", MUSINFOtics)
|
||||||
("soundclass", SoundClass)
|
("soundclass", SoundClass)
|
||||||
("angleoffsettargets", angleOffsetTargets);
|
("angleoffsettargets", angleOffsetTargets)
|
||||||
("lastsafepos", LastSafePos);
|
("lastsafepos", LastSafePos);
|
||||||
|
|
||||||
if (arc.isWriting ())
|
if (arc.isWriting ())
|
||||||
|
|
Loading…
Reference in a new issue