Skip to content

Fix behavior execution for Javascript runners - #99

Merged
TimDiekmann merged 3 commits into
mainfrom
td/fix-behaviors
Dec 17, 2021
Merged

Fix behavior execution for Javascript runners#99
TimDiekmann merged 3 commits into
mainfrom
td/fix-behaviors

Conversation

@TimDiekmann

Copy link
Copy Markdown
Member

🌟 What is the purpose of this PR?

Only behaviors for the first agents are executed. This is a fix to this.

🔗 Related links

🔍 What does this change?

For optimization, the agent_state was reused in the javascript runner. This PR removes the optimization, as behavior indices were borked after reusing.

🛡 Tests

  • ✅ Manual Tests

@Alfred-Mountfield
Alfred-Mountfield removed their request for review December 17, 2021 10:44

@litvand litvand left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first change is good

@litvand
litvand self-requested a review December 17, 2021 12:52

@litvand litvand left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TimDiekmann
TimDiekmann merged commit c5e4be6 into main Dec 17, 2021
@TimDiekmann
TimDiekmann deleted the td/fix-behaviors branch December 17, 2021 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants