mirror of
https://github.com/isledecomp/isle.git
synced 2025-12-15 10:23:33 +00:00
Fix MxParam casts in Notify functions (#1188)
* First batch * Second batch
This commit is contained in:
@@ -89,10 +89,11 @@ LegoRace::~LegoRace()
|
||||
MxLong LegoRace::Notify(MxParam& p_param)
|
||||
{
|
||||
LegoWorld::Notify(p_param);
|
||||
MxNotificationParam& param = (MxNotificationParam&) p_param;
|
||||
|
||||
MxLong result = 0;
|
||||
if (m_worldStarted) {
|
||||
switch (((MxNotificationParam&) p_param).GetNotification()) {
|
||||
switch (param.GetNotification()) {
|
||||
case c_notificationType0:
|
||||
HandleType0Notification((MxNotificationParam&) p_param);
|
||||
break;
|
||||
|
||||
@@ -124,7 +124,9 @@ MxLong LegoRaceMap::Notify(MxParam& p_param)
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (((MxNotificationParam&) p_param).GetNotification() == c_notificationControl &&
|
||||
MxNotificationParam& param = (MxNotificationParam&) p_param;
|
||||
|
||||
if (param.GetNotification() == c_notificationControl &&
|
||||
m_Map_Ctl->GetAction()->GetObjectId() ==
|
||||
((LegoControlManagerNotificationParam&) p_param).GetClickedObjectId()) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user