Updated Toy, fixed a bug

This commit is contained in:
2023-06-20 13:58:39 +10:00
parent cf1e6615b1
commit 22dfe0f8e9
2 changed files with 2 additions and 2 deletions

2
Toy

Submodule Toy updated: f6ec6a8c73...0e41b00ef4

View File

@@ -128,7 +128,7 @@ fn onDraw(node: opaque) {
//gameplay functions
fn runAI(node: opaque, rng: opaque) {
if ((stepAI++) >= 1) { //TODO: Toy bug here, something to do with precedence of postfix++?
if (stepAI++ >= 1) {
stepAI = 0;
var dir = rng.generateRandomNumber() % 4;