git repos / blockattack-game

commit 548313f7

Poul Sander · 2019-01-30 18:57
548313f71f175cd119c27a54859a0fa32b80f258 patch · browse files
parent 4379ec199141047f26da9bb4d9622e8fe1d2d2ca

Removed unneccecary contructor for Highscore

Changed files

M source/code/global.hpp before
M source/code/highscore.h before
diff --git a/source/code/global.hpp b/source/code/global.hpp index 5724f99..0d93790 100644 --- a/source/code/global.hpp +++ b/source/code/global.hpp
@@ -66,10 +66,10 @@ struct GlobalData {
sago::SoundHandler typingChunk;
sago::SagoSprite mouse;
bool highPriority = false;
- bool NoSound = false;
+ bool NoSound = false;
int verboseLevel = 0;
- Highscore theTopScoresEndless = Highscore(0.5); //Stores highscores for endless
- Highscore theTopScoresTimeTrial = Highscore(0.5); //Stores highscores for timetrial
+ Highscore theTopScoresEndless = Highscore("endless", 0.5); //Stores highscores for endless
+ Highscore theTopScoresTimeTrial = Highscore("timetrial", 0.5); //Stores highscores for timetrial
std::unique_ptr<sago::SagoSpriteHolder> spriteHolder;
TextManager theTextManager;
diff --git a/source/code/highscore.h b/source/code/highscore.h index dd40723..a35e92a 100644 --- a/source/code/highscore.h +++ b/source/code/highscore.h
@@ -48,11 +48,6 @@ private:
void writeFile();
double speed = 0.5;
public:
-
- Highscore(double speed) : speed(speed)
- {
- }
-
Highscore(const std::string& type, double speed);
bool isHighScore(int);