mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 10:41:15 +00:00
Fix/match
This commit is contained in:
parent
4f9535db1d
commit
0644633fb8
@ -135,17 +135,20 @@ void NotifyEntity(const char* p_filename, MxS32 p_entityId, LegoEntity* p_sender
|
|||||||
{
|
{
|
||||||
MxAtomId atom(p_filename, e_lowerCase2);
|
MxAtomId atom(p_filename, e_lowerCase2);
|
||||||
LegoEntity* entity = FindWorld(atom, p_entityId);
|
LegoEntity* entity = FindWorld(atom, p_entityId);
|
||||||
|
|
||||||
if (entity == NULL) {
|
if (entity == NULL) {
|
||||||
LegoWorldListCursor cursor(Lego()->GetWorldList());
|
LegoWorldListCursor cursor(Lego()->GetWorldList());
|
||||||
LegoWorld* current;
|
LegoWorld* current;
|
||||||
while (entity == NULL) {
|
|
||||||
cursor.Next(current);
|
while (cursor.Next(current)) {
|
||||||
entity = (LegoEntity*) current->Find(atom, p_entityId);
|
entity = (LegoEntity*) current->Find(atom, p_entityId);
|
||||||
|
|
||||||
|
if (entity != NULL)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (entity != NULL) {
|
if (entity != NULL) {
|
||||||
|
|
||||||
#ifdef COMPAT_MODE
|
#ifdef COMPAT_MODE
|
||||||
{
|
{
|
||||||
MxNotificationParam param(c_notificationType0, p_sender);
|
MxNotificationParam param(c_notificationType0, p_sender);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user