From e08f4cc1c7c46ad24526b43da014006f04891c21 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Tue, 11 Sep 2018 08:36:00 -0400 Subject: node: Mark node as booted before running on-boot hook. This fixes some weird order of operations bugs. * starling/node.scm (boot): Set booted? to #t before calling on-boot. --- starling/node.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/starling/node.scm b/starling/node.scm index efb3c12..101887e 100644 --- a/starling/node.scm +++ b/starling/node.scm @@ -127,8 +127,8 @@ represented as a ratio in the range [0, 1]." (define-method (boot (node )) "Prepare NODE to enter the game world for the first time." - (on-boot node) - (set! (booted? node) #t)) + (set! (booted? node) #t) + (on-boot node)) (define-method (activate (node )) "Mark NODE and all of its children as active." -- cgit v1.2.3