From 14a2aaadea38d3c81511737f1d0666ed141300b9 Mon Sep 17 00:00:00 2001 From: Joshua Peisach Date: Sat, 8 Jun 2024 17:40:20 -0400 Subject: [PATCH] Act2PoliceStation::Notify (#1002) * Act2PoliceStation::Notify * Match code --------- Co-authored-by: Christian Semmler --- .../lego/legoomni/src/entity/act2policestation.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/LEGO1/lego/legoomni/src/entity/act2policestation.cpp b/LEGO1/lego/legoomni/src/entity/act2policestation.cpp index a8636335..728b0441 100644 --- a/LEGO1/lego/legoomni/src/entity/act2policestation.cpp +++ b/LEGO1/lego/legoomni/src/entity/act2policestation.cpp @@ -1,11 +1,21 @@ #include "act2policestation.h" +#include "legoworld.h" +#include "misc.h" +#include "mxmisc.h" +#include "mxnotificationmanager.h" +#include "mxnotificationparam.h" + DECOMP_SIZE_ASSERT(Act2PoliceStation, 0x68) -// STUB: LEGO1 0x1004e0e0 +// FUNCTION: LEGO1 0x1004e0e0 MxLong Act2PoliceStation::Notify(MxParam& p_param) { - // TODO + if (((MxNotificationParam&) p_param).GetType() == c_notificationClick) { + MxNotificationParam param(c_notificationType23, NULL); + NotificationManager()->Send(CurrentWorld(), param); + return 1; + } return 0; }