-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
on and when in functions does not work #746
Labels
bug
Weird outcome is probably not what the mod programmer expected.
Milestone
Comments
this is likely related to the closure work @Dunbaratu is doing? |
Not sure - I'll have to have a look at things. |
code:
log:
|
According to that log, the WHEN isn't just being compiled wrongly. It's never even being compiled at all. It's entirely missing from the ML program, giving output that would be identical to what you would get if the WHEN was entirely deleted from the script. Weird. |
Dunbaratu
added
the
bug
Weird outcome is probably not what the mod programmer expected.
label
Apr 9, 2015
Dunbaratu
added a commit
to Dunbaratu/KOS-1
that referenced
this issue
Apr 9, 2015
…se now. Function bodies previously didn't get preparsed for triggers properly. Now it recurses down into themto ensure it finds the triggers inside. This fixes both the problems because RUN and WHEN are both in need of a preprocess pass to work properly, and it was the lack of that preprocess pass that was causing the problem in both these cases.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this code:
and this code:
Both in the console and in the file print nothing. No matter how many times I hit the "abort" button
However this code:
prints "test1_trigger"
and this code:
Both in the console and in the file print "test1_trigger" when I press the "abort" button.
The text was updated successfully, but these errors were encountered: