mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-23 16:21:15 +00:00
Replace two hardcoded magic values with constants
This commit is contained in:
parent
d6796ad86a
commit
00d968978b
@ -761,13 +761,13 @@ void LegoGameState::StopArea(Area p_area)
|
||||
InvokeAction(Extra::e_close, *g_racecarScript, RacecarScript::c__StartUp, NULL);
|
||||
break;
|
||||
case e_act2main:
|
||||
if (m_currentArea != 2) {
|
||||
if (m_currentArea != e_infomain) {
|
||||
InvokeAction(Extra::e_stop, *g_act2mainScript, Act2mainScript::c__Act2Main, NULL);
|
||||
InvokeAction(Extra::e_close, *g_act2mainScript, Act2mainScript::c__Act2Main, NULL);
|
||||
}
|
||||
break;
|
||||
case e_act3script:
|
||||
if (m_currentArea != 2) {
|
||||
if (m_currentArea != e_infomain) {
|
||||
InvokeAction(Extra::e_stop, *g_act3Script, Act3Script::c__Act3, NULL);
|
||||
InvokeAction(Extra::e_close, *g_act3Script, Act3Script::c__Act3, NULL);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user