Fix a bug where a failinb build that causes death would play both the death sound and build failed sound.
This commit is contained in:
parent
e8163bbeaf
commit
fee724e637
3 changed files with 9 additions and 4 deletions
2
gui.hpp
2
gui.hpp
|
@ -37,7 +37,7 @@ class GUI {
|
|||
int main_loop(GameEngine &game, std::function<bool()> runner);
|
||||
|
||||
void build_works();
|
||||
void build_failed(const string &command);
|
||||
void build_failed(bool play_sound, const string &command);
|
||||
void you_died();
|
||||
void building();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue