From 5f46f1f975bd621fbca9c7e173de78e83ad70e3a Mon Sep 17 00:00:00 2001 From: tradam Date: Mon, 27 Sep 2021 08:39:23 -0400 Subject: partially complete fixing code, found a strange bug with ruby2d --- lib/ruby2d/camera/square.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/ruby2d/camera/square.rb') diff --git a/lib/ruby2d/camera/square.rb b/lib/ruby2d/camera/square.rb index b6f0321..7f74ee5 100644 --- a/lib/ruby2d/camera/square.rb +++ b/lib/ruby2d/camera/square.rb @@ -36,7 +36,7 @@ module Ruby2D def initialize(opts = {}) super(opts) - Ruby2D::Camera << self + Camera << self Window.remove(self) @x1 -= @x @x2 -= @x @@ -69,7 +69,7 @@ module Ruby2D def z=(z) super(z) - Ruby2D::Camera._sort_by_z + Camera._sort_by_z end end end -- cgit v1.2.3