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:
Zed A. Shaw 2024-08-27 16:34:38 -04:00
parent e8163bbeaf
commit fee724e637
3 changed files with 9 additions and 4 deletions

View file

@ -88,7 +88,8 @@ void Builder::run_build() {
if(rc == 0) {
gui.build_works();
} else {
gui.build_failed(build_cmd);
gui.output(format(">>>>>>>> DIED? {}", game.is_dead()));
gui.build_failed(!game.is_dead(), build_cmd);
}
stats_out.close();