mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-04-07 20:24:26 -04:00
Improve Isle::Enable
match (#1410)
This commit is contained in:
parent
421a317050
commit
b0b68052d4
1 changed files with 5 additions and 4 deletions
|
@ -543,11 +543,12 @@ void Isle::Enable(MxBool p_enable)
|
|||
m_act1state->PlaceActors();
|
||||
|
||||
if (UserActor() != NULL && UserActor()->GetActorId() != LegoActor::c_none) {
|
||||
// TODO: Match, most likely an inline function
|
||||
MxS32 targetEntityId = (UserActor()->GetActorId() == 1) + 250;
|
||||
IsleScript::Script noPizzaSign = UserActor()->GetActorId() == LegoActor::c_pepper
|
||||
? IsleScript::c_NoPizaz_Texture
|
||||
: IsleScript::c_NoPizza_Texture;
|
||||
|
||||
if (targetEntityId != -1) {
|
||||
InvokeAction(Extra::e_start, *g_isleScript, targetEntityId, NULL);
|
||||
if (noPizzaSign != IsleScript::c_noneIsle) {
|
||||
InvokeAction(Extra::e_start, *g_isleScript, noPizzaSign, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue