From 44f49a7a578de4a5297d27ec0f7f4246dc809709 Mon Sep 17 00:00:00 2001 From: Ramen2X Date: Mon, 18 Mar 2024 12:23:19 -0400 Subject: [PATCH] implement/match Hospital::HandleKeyPress() (#689) --- LEGO1/lego/legoomni/src/worlds/hospital.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/LEGO1/lego/legoomni/src/worlds/hospital.cpp b/LEGO1/lego/legoomni/src/worlds/hospital.cpp index 861951e6..98b73d74 100644 --- a/LEGO1/lego/legoomni/src/worlds/hospital.cpp +++ b/LEGO1/lego/legoomni/src/worlds/hospital.cpp @@ -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