Skip to content

Commit

Permalink
unbroke sg cannon scoring
Browse files Browse the repository at this point in the history
  • Loading branch information
jadebenn committed Dec 26, 2023
1 parent d0954e7 commit b0e898d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dScripts/ai/MINIGAME/SG_GF/SERVER/SGCannon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ void SGCannon::RegisterHit(Entity* self, Entity* target, const std::string& time
ActivityTimerStart(self, timerName, respawnTime, respawnTime);
}

uint32_t score = spawnInfo.score;
int32_t score = spawnInfo.score;

if (score > 0) {
score += score * GetCurrentBonus(self);
Expand Down Expand Up @@ -673,7 +673,7 @@ void SGCannon::RegisterHit(Entity* self, Entity* target, const std::string& time
target->GetPosition()
);

uint32_t newScore = self->GetVar<uint32_t>(TotalScoreVariable) + score;
auto newScore = self->GetVar<int32_t>(TotalScoreVariable) + score;

if (newScore < 0) {
newScore = 0;
Expand Down

0 comments on commit b0e898d

Please sign in to comment.