Skip to content

Commit

Permalink
Blood: removed 3 unused members in PLAYER
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Sep 28, 2023
1 parent f46db83 commit b05b409
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions source/games/blood/src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,6 @@ void playerStart(int nPlayer, int bNewLevel)
actor->SetBurnSource(nullptr);
pPlayer->actor->xspr.health = pDudeInfo->startHealth << 4;
pPlayer->actor->spr.cstat &= ~CSTAT_SPRITE_INVISIBLE;
pPlayer->bloodlust = 0;
pPlayer->actor->spr.Angles.Pitch = pPlayer->Angles.ViewAngles.Pitch = nullAngle;
pPlayer->slope = 0;
pPlayer->fragger = nullptr;
Expand Down Expand Up @@ -2406,7 +2405,6 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, PLAYER& w, PLAYER*
arc("spritenum", w.actor)
("angles", w.Angles)
("newweapon", w.newWeapon)
("used1", w.used1)
("weaponqav", w.weaponQav)
("qavcallback", w.qavCallback)
("isrunning", w.isRunning)
Expand All @@ -2416,13 +2414,11 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, PLAYER& w, PLAYER*
("bobamp", w.bobAmp)
("bobheight", w.bobHeight)
("bobwidth", w.bobWidth)
("swayphase", w.swayPhase)
("swayamp", w.swayAmp)
("swayheight", w.swayHeight)
("swaywidth", w.swayWidth)
("nplayer", w.nPlayer)
("lifemode", w.lifeMode)
("bloodlust", w.bloodlust)
("zview", w.zView)
("zviewvel", w.zViewVel)
("zweapon", w.zWeapon)
Expand Down Expand Up @@ -2578,7 +2574,6 @@ DEFINE_FIELD_X(BloodPlayer, PLAYER, bobPhase)
DEFINE_FIELD_X(BloodPlayer, PLAYER, bobAmp)
DEFINE_FIELD_X(BloodPlayer, PLAYER, bobHeight)
DEFINE_FIELD_X(BloodPlayer, PLAYER, bobWidth)
DEFINE_FIELD_X(BloodPlayer, PLAYER, swayPhase)
DEFINE_FIELD_X(BloodPlayer, PLAYER, swayAmp)
DEFINE_FIELD_X(BloodPlayer, PLAYER, swayHeight)
DEFINE_FIELD_X(BloodPlayer, PLAYER, swayWidth)
Expand Down
3 changes: 0 additions & 3 deletions source/games/blood/src/player.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ struct PLAYER
InputPacket input;
PlayerAngles Angles;
uint8_t newWeapon;
int used1; // something related to game checksum
int weaponQav;
int qavCallback;
bool isRunning;
Expand All @@ -97,15 +96,13 @@ struct PLAYER
double bobWidth;
double obobHeight;
double obobWidth;
int swayPhase;
int swayAmp;
double swayHeight;
double swayWidth;
double oswayHeight;
double oswayWidth;
int nPlayer; // Connect id
int lifeMode;
int bloodlust; // ---> useless
double zView;
double ozView;
double zViewVel;
Expand Down
1 change: 0 additions & 1 deletion source/games/blood/src/prediction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ void viewInitializePrediction(void)
predict.Kills = gMe->bobAmp;
predict.bobHeight = gMe->bobHeight;
predict.bobWidth = gMe->bobWidth;
predict.swayPhase = gMe->swayPhase;
predict.swayAmp = gMe->swayAmp;
predict.shakeBobY = gMe->swayHeight;
predict.shakeBobX = gMe->swayWidth;
Expand Down
1 change: 0 additions & 1 deletion wadsrc/static/zscript/games/blood/bloodgame.zs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ struct BloodPlayer native
native int bobAmp;
native double bobHeight;
native double bobWidth;
native int swayPhase;
native int swayAmp;
native double swayHeight;
native double swayWidth;
Expand Down

0 comments on commit b05b409

Please sign in to comment.