protected void StopScriptCommon(int script)
{
if (Game.GameId == GameId.Maniac && _roomResource == 26 && Slots[CurrentScript].Number == 10001)
{
// FIXME: Nasty hack for bug #915575
// Don't let the exit script for room 26 stop the script (116), when
// switching to the dungeon (script 89)
if (Game.Version >= 1 && script == 116 && IsScriptRunningCore(89))
return;
// Script numbers are different in V0
if (Game.Version == 0 && script == 111 && IsScriptRunningCore(84))
return;
}
if (script == 0)
script = Slots[CurrentScript].Number;
if (CurrentScript != 0 && Slots[CurrentScript].Number == script)
StopObjectCode();
else
StopScript(script);
}