diff --git a/Scripts/BerryLogic.cs b/Scripts/BerryLogic.cs index 4a61e9a..64b0442 100644 --- a/Scripts/BerryLogic.cs +++ b/Scripts/BerryLogic.cs @@ -33,10 +33,10 @@ public partial class BerryLogic : Node2D { (BerryType == "ultra") ? 5 : (BerryType == "speedy") ? 10 : 0; - Globals.Score += ScoreAdder; - if (Globals.Score > Globals.HighScore) { - Globals.HighScore += ScoreAdder; + if (Globals.Score >= Globals.HighScore) { + Globals.HighScore = Globals.Score + ScoreAdder; } + Globals.Score += ScoreAdder; if (BerryType == "normal") { PlaySound("res://Audio/SFX/Eat.mp3", 80f);