Closed LilithSilver closed 9 months ago
Thanks for providing a test case :+1
The problem was that we only returned one instruction after a look ahead ... Now we do as Inkle specifies, with double external execution and an observer who gets called multiple times for the same change ^^
You are welcome to check the PR #73
Got another one!
It seems variables might not be re-evaluated properly after a lookahead. For example:
Given a GET_LINE_COUNT which prints however many lines have been consumed, inkcpp prints:
Where the C# package prints:
(even with the function bound as lookahead-safe). This can cause issues in games which have a state change after a line is printed.
Here's a unit test.. I've replicated the unit test in C# and confirmed that it produces the second output.
Many thanks for your hard work on this package, by the way!