master
CREAsTIVE 2022-07-23 03:06:19 +05:00
parent 7a01776f87
commit 068030ecea
1 changed files with 5 additions and 3 deletions

View File

@ -169,7 +169,7 @@ void Shooter::update() {
screen->stopRender(); screen->stopRender();
} }
} }
if (inGame) { if (inGame) {
screen->setTitle(ShooterConsts::PROJECT_NAME); screen->setTitle(ShooterConsts::PROJECT_NAME);
if (isTypingMessage) { if (isTypingMessage) {
@ -190,14 +190,15 @@ void Shooter::update() {
} else { } else {
mainMenu.update(); mainMenu.update();
} }
setUpdateWorld(inGame); setUpdateWorld(inGame);
// background sounds and music control // background sounds and music control
if (SoundController::getStatus(SoundTag("background")) != sf::Sound::Status::Playing) { if (SoundController::getStatus(SoundTag("background")) != sf::Sound::Status::Playing) {
SoundController::loadAndPlay(SoundTag("background"), ShooterConsts::BACK_NOISE); SoundController::loadAndPlay(SoundTag("background"), ShooterConsts::BACK_NOISE);
} }
drawChat();
} }
void Shooter::drawChat() { void Shooter::drawChat() {
@ -222,6 +223,7 @@ void Shooter::gui() {
// health player stats // health player stats
drawPlayerStats(); drawPlayerStats();
drawStatsTable(); drawStatsTable();
drawChat();
} }
void Shooter::drawStatsTable() { void Shooter::drawStatsTable() {