Get the build fail to actually play and keep the building sound looping until the build is done.

This commit is contained in:
Zed A. Shaw 2024-09-16 17:24:02 -04:00
parent 2035a6dd00
commit 95cd84b09d
8 changed files with 8 additions and 9 deletions

View file

@ -87,7 +87,6 @@ void Builder::BUILDING(BuildEvent ev) {
}
build_out = NULL;
game.event(GameEvent::BUILD_DONE);
state(BuildState::DONE);
} else {
auto m = parse_line(line);
@ -171,6 +170,7 @@ void Builder::DONE(BuildEvent ev) {
gui.you_died();
}
game.event(GameEvent::BUILD_DONE);
listener->reset_state();
gui.output("^^^^^^^^^^^ END ^^^^^^^^^^^");
state(BuildState::WAITING);