Skip to content

Commit 41bc77c

Browse files
committed
Fix title not changing
1 parent 8a46b53 commit 41bc77c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

game/game/game.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ void gameClass::drawShop(sf::Event &event, sf::Text &money, player &plr) {
103103
}
104104
}
105105
else if ((event.mouseButton.x >= quitButton.getPosition().x - 100 && event.mouseButton.x <= quitButton.getPosition().x + 100) && (event.mouseButton.y >= quitButton.getPosition().y && event.mouseButton.y <= quitButton.getPosition().y + 88)) {
106+
this->window.setTitle("Main");
106107
return;
107108
}
108109
}
@@ -252,6 +253,7 @@ void gameClass::fightScene(player& plr, field& inputField, sf::Time& dt, sf::Clo
252253
if (dead) {
253254
fightEnded = true;
254255
plr.setSize(sf::Vector2f(88, 111));
256+
this->window.setTitle("Main");
255257
}
256258
animateRotation = 'p';
257259
}

0 commit comments

Comments
 (0)