lib/minigl/movement.rb in minigl-2.3.3 vs lib/minigl/movement.rb in minigl-2.3.4
- old
+ new
@@ -109,10 +109,10 @@
#
# Parameters:
# [obj] The object to check intersection with. It must have the +x+, +y+,
# +w+ and +h+ accessible attributes determining its bounding box.
def intersect?(obj)
- obj.x + obj.w > @x && obj.x < @x + @w && obj.y > get_y(obj) && obj.y <= @y + @h - obj.h
+ obj.x + obj.w > @x && obj.x < @x + @w && obj.y > get_y(obj) && obj.y < @y + @h
end
# :nodoc:
def check_can_collide(m)
y = get_y(m) + m.h