mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-24 21:29:41 -04:00
Improve Isle::Enable
match (#1410)
This commit is contained in:
parent
421a317050
commit
b0b68052d4
@ -543,11 +543,12 @@ void Isle::Enable(MxBool p_enable)
|
|||||||
m_act1state->PlaceActors();
|
m_act1state->PlaceActors();
|
||||||
|
|
||||||
if (UserActor() != NULL && UserActor()->GetActorId() != LegoActor::c_none) {
|
if (UserActor() != NULL && UserActor()->GetActorId() != LegoActor::c_none) {
|
||||||
// TODO: Match, most likely an inline function
|
IsleScript::Script noPizzaSign = UserActor()->GetActorId() == LegoActor::c_pepper
|
||||||
MxS32 targetEntityId = (UserActor()->GetActorId() == 1) + 250;
|
? IsleScript::c_NoPizaz_Texture
|
||||||
|
: IsleScript::c_NoPizza_Texture;
|
||||||
|
|
||||||
if (targetEntityId != -1) {
|
if (noPizzaSign != IsleScript::c_noneIsle) {
|
||||||
InvokeAction(Extra::e_start, *g_isleScript, targetEntityId, NULL);
|
InvokeAction(Extra::e_start, *g_isleScript, noPizzaSign, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user