lanceewing / agile

Sierra AGI (Adventure Game Interpreter) engine written in C#
15 stars 7 forks source link

[LSL1] Restoring the game while using slot machine show broken UI #37

Closed vafada closed 2 years ago

vafada commented 2 years ago

Capture2

vafada commented 2 years ago

when restoring game, the function does

state.ScriptBuffer.AddScript((ScriptBuffer.ScriptBufferEventType)action, resourceNum, data);

but it currently a no-op since

state.Flags[Defines.NO_SCRIPT] is set to true

https://github.com/lanceewing/agile/blob/master/AGILE/ScriptBuffer.cs#L104

nothing in the code sets state.Flags[Defines.NO_SCRIPT] to true so it must be in one of the logic files

vafada commented 2 years ago

allow the restore function to add script fixes this bug... though need to figure out why state.Flags[Defines.NO_SCRIPT] is getting set to true

vafada commented 2 years ago

logic 37 ( the slot machine room) calls

set(noScript);