void Lights()
{
var a = GetVarOrDirectByte(OpCodeParameter.Param1);
var b = ReadByte();
var c = ReadByte();
if (c == 0)
{
if (Game.GameId == GameId.Maniac && Game.Version == 1 /*&& !(Game.Platform == Platform.NES)*/)
{
// Convert older light mode values into
// equivalent values of later games.
// 0 Darkness
// 1 Flashlight
// 2 Lighted area
if (a == 2)
Variables[VariableCurrentLights.Value] = 11;
else if (a == 1)
Variables[VariableCurrentLights.Value] = 4;
else
Variables[VariableCurrentLights.Value] = 0;
}
else
Variables[VariableCurrentLights.Value] = a;
}
else if (c == 1)
{
_flashlight.XStrips = (ushort)a;
_flashlight.YStrips = b;
}
_fullRedraw = true;
}