Properly clear state

This commit is contained in:
2024-01-12 21:19:57 +01:00
parent 25a3229bb2
commit 4dd9b366e7
2 changed files with 9 additions and 4 deletions

View File

@@ -27,9 +27,10 @@ bool init(int *game) {
// print "Hello, world!"
printBT = bzBTMakeRoot(nodePool);
BzBTNode *pseq = bzBTCompPSelector(nodePool, printBT);
bzBTDecorDelay(nodePool, pseq, 2.0f);
BzBTNode *node = bzBTDecorFail(nodePool, pseq);
bzBTDecorDelay(nodePool, node, 2.0f);
BzBTNode *node = bzBTDecorRepeat(nodePool, pseq, 5);
node = bzBTDecorRepeat(nodePool, pseq, 5);
BzBTNode *seq = bzBTCompSequence(nodePool, node);