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)
|
||||
}
|
||||
|
||||
// updateRecursive updates everything in a post-order traversal. It terminates recursion
|
||||
// early if the component reports it is Disabled.
|
||||
// updateRecursive updates everything in a post-order traversal. It terminates
|
||||
// the recursion early if the component reports it is Disabled.
|
||||
func (g *Game) updateRecursive(c interface{}) error {
|
||||
if d, ok := c.(Disabler); ok && d.Disabled() {
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue