From 0e64c4a994789761f3a96d49e5c1d6f52b8c805e Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Sat, 28 Aug 2021 16:26:24 +1000 Subject: [PATCH] equality is ok --- engine/scene.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/scene.go b/engine/scene.go index 7e203c9..4ec90df 100644 --- a/engine/scene.go +++ b/engine/scene.go @@ -85,7 +85,7 @@ func (s *Scene) Update() error { if !ok { continue } - if t := z.DrawOrder(); t > cz { + if t := z.DrawOrder(); t >= cz { cz = t continue }