- allow all keys to open the menu in Blood's demo loop.

This commit is contained in:
Christoph Oelckers 2020-02-10 20:33:48 +01:00
parent 744e4161f7
commit a32bc350f1
2 changed files with 9 additions and 1 deletions

View file

@ -287,8 +287,16 @@ void CDemo::ProcessKeys(void)
gViewIndex = connecthead; gViewIndex = connecthead;
gView = &gPlayer[gViewIndex]; gView = &gPlayer[gViewIndex];
break; break;
default:
if (!M_Active())
{
M_StartControlPanel(true);
M_SetMenu(NAME_MainMenu);
} }
} }
}
break; break;
default: default:
gInputMode = kInputGame; gInputMode = kInputGame;

View file

@ -965,7 +965,7 @@ SectorObjectSetupBounds(SECTOR_OBJECTp sop)
// sector // sector
// place all sprites on list // place all sprites on list
uint16_t sn; int sn;
for (sn = 0; sn < (int)SIZ(sop->sp_num); sn++) for (sn = 0; sn < (int)SIZ(sop->sp_num); sn++)
{ {
if (sop->sp_num[sn] == -1) if (sop->sp_num[sn] == -1)