mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-25 09:24:17 +00:00
Make NotificationManager::Send take a const reference to notification (#836)
* Make NotificationManager::Send take a const reference to notification * Fix virtual func
This commit is contained in:
committed by
GitHub
parent
0e0d6890ad
commit
f1688be263
@@ -124,7 +124,7 @@ void LegoAnimMMPresenter::EndAction()
|
||||
|
||||
MxType18NotificationParam param(c_notificationType18, NULL, m_animmanId);
|
||||
if (m_animmanId != 0) {
|
||||
NotificationManager()->Send(AnimationManager(), ¶m);
|
||||
NotificationManager()->Send(AnimationManager(), param);
|
||||
}
|
||||
|
||||
if (m_action != NULL) {
|
||||
|
||||
@@ -775,14 +775,7 @@ inline void LoadIsle()
|
||||
LegoWorld* world = FindWorld(*g_isleScript, 0);
|
||||
if (world != NULL) {
|
||||
if (!world->GetUnknown0xd0().empty()) {
|
||||
#ifdef COMPAT_MODE
|
||||
{
|
||||
MxNotificationParam param(c_notificationType20, NULL);
|
||||
NotificationManager()->Send(world, ¶m);
|
||||
}
|
||||
#else
|
||||
NotificationManager()->Send(world, &MxNotificationParam(c_notificationType20, NULL));
|
||||
#endif
|
||||
NotificationManager()->Send(world, MxNotificationParam(c_notificationType20, NULL));
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -239,14 +239,7 @@ void NotifyEntity(const char* p_filename, MxS32 p_entityId, LegoEntity* p_sender
|
||||
}
|
||||
|
||||
if (entity != NULL) {
|
||||
#ifdef COMPAT_MODE
|
||||
{
|
||||
MxNotificationParam param(c_notificationType0, p_sender);
|
||||
NotificationManager()->Send(entity, ¶m);
|
||||
}
|
||||
#else
|
||||
NotificationManager()->Send(entity, &MxNotificationParam(c_notificationType0, p_sender));
|
||||
#endif
|
||||
NotificationManager()->Send(entity, MxNotificationParam(c_notificationType0, p_sender));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user