implement/match Hospital::HandleKeyPress() (#689)

This commit is contained in:
Ramen2X 2024-03-18 12:23:19 -04:00 committed by GitHub
parent e1135d9c1d
commit 44f49a7a57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -215,11 +215,17 @@ void Hospital::ReadyWorld()
FUN_10015820(FALSE, LegoOmni::c_disableInput | LegoOmni::c_disable3d | LegoOmni::c_clearScreen);
}
// STUB: LEGO1 0x10074dd0
// FUNCTION: LEGO1 0x10074dd0
MxLong Hospital::HandleKeyPress(MxS8 p_key)
{
// TODO
return 0;
MxLong result = 0;
if (p_key == ' ' && g_unk0x100f7918 == 0) {
DeleteObjects(&m_atom, HospitalScript::c_hho002cl_RunAnim, HospitalScript::c_hho006cl_RunAnim);
result = 1;
}
return result;
}
// STUB: LEGO1 0x10074e00