X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame.c;h=eb115cb3978c1e6e27da7a57d7a196f9b683b1b2;hb=79d7ca29718d025ed0b131bf5389685fe9b941c4;hp=daf96fe52f7da0c1e22d0cfc4b6fa5539d17bd27;hpb=148d0ad7e7ac1a97eb50de7ecbb642f36c877311;p=rocksndiamonds.git diff --git a/src/game.c b/src/game.c index daf96fe5..eb115cb3 100644 --- a/src/game.c +++ b/src/game.c @@ -12037,6 +12037,18 @@ static void CheckLevelTime() level.native_em_level->ply[3]->alive == 0) /* all dead */ AllPlayersGone = TRUE; } + else if (level.game_engine_type == GAME_ENGINE_TYPE_SP) + { + if (game_sp_info.LevelSolved) /* game won */ + { + PlayerWins(local_player); + + AllPlayersGone = TRUE; + } + + if (game_sp_info.GameOver) /* game lost */ + AllPlayersGone = TRUE; + } if (TimeFrames >= FRAMES_PER_SECOND) {