comment
This commit is contained in:
parent
86e435e5f8
commit
e5632912de
1 changed files with 2 additions and 2 deletions
|
@ -68,8 +68,8 @@ func (g *Game) Update() error {
|
||||||
return g.updateRecursive(g)
|
return g.updateRecursive(g)
|
||||||
}
|
}
|
||||||
|
|
||||||
// updateRecursive updates everything in a post-order traversal. It terminates recursion
|
// updateRecursive updates everything in a post-order traversal. It terminates
|
||||||
// early if the component reports it is Disabled.
|
// the recursion early if the component reports it is Disabled.
|
||||||
func (g *Game) updateRecursive(c interface{}) error {
|
func (g *Game) updateRecursive(c interface{}) error {
|
||||||
if d, ok := c.(Disabler); ok && d.Disabled() {
|
if d, ok := c.(Disabler); ok && d.Disabled() {
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue