Skip to content

Commit

Permalink
Merge pull request #390 from Ymihere03/spawn-shields
Browse files Browse the repository at this point in the history
Newly spawned hectors now have max shields
  • Loading branch information
Ymihere03 authored Mar 5, 2024
2 parents 0026ace + 52e9f04 commit 1243106
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/game/CAbstractPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -888,11 +888,11 @@ void CAbstractPlayer::DashboardPosition(CScaledBSP *part, bool autoRot, float x,

if (autoRot) {
if (x < 0.0) {
yAng = -60*x + 15;
yAng = -35*x + 15;
}

if (x > 0.0) {
yAng = -60*x - 15;
yAng = -35*x - 15;
}
}

Expand Down Expand Up @@ -1830,11 +1830,11 @@ bool CAbstractPlayer::ReincarnateComplete(CIncarnator* newSpot) {
if (reEnergize) {
boostEndFrame = itsGame->FramesFromNow(MINIBOOSTTIME);
reEnergize = false;
if (shields < (maxShields >> 1))
shields = maxShields >> 1;
if (shields < maxShields)
shields = maxShields;

if (energy < (maxEnergy >> 1))
energy = maxEnergy >> 1;
if (energy < maxEnergy)
energy = maxEnergy;
}

doIncarnateSound = true;
Expand Down

0 comments on commit 1243106

Please sign in to comment.