Optimitzat el tema de comparacions i asignacions de strings buits. Mes que optimitzat, ara està mes mono

This commit is contained in:
2024-10-13 14:25:05 +02:00
parent ba7c44ad06
commit 46540ad7c3
16 changed files with 47 additions and 53 deletions

View File

@@ -35,7 +35,7 @@ Player::Player(int id, float x, int y, bool demo, SDL_Rect *play_area, std::vect
demo_ = demo;
status_playing_ = PlayerStatus::WAITING;
scoreboard_panel_ = 0;
name_ = "";
name_.clear();
setRecordName(enter_name_->getName());
init();
}