- WH: enable level restart after death.

This commit is contained in:
Christoph Oelckers 2021-11-26 23:28:12 +01:00
parent b0099fc513
commit 3fa9e7894b

View file

@ -199,6 +199,12 @@ void processinput(int num) {
if (plr.dead) {
if (plr.horizon.horiz.asq16() < gi->playerHorizMax())
plr.horizon.addadjustment(TICSPERFRAME << 1);
if (bits & (SB_FIRE | SB_OPEN))
{
// restart;
gameaction = ga_autoloadgame;
}
}
return;
}