mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-16 13:12:34 +00:00
Fixed Vector#== erroring out with doing Vector == SomeObject
This commit is contained in:
@@ -86,11 +86,13 @@ module CyberarmEngine
|
||||
@y == other &&
|
||||
@z == other &&
|
||||
@weight == other
|
||||
else
|
||||
elsif other.is_a?(Vector)
|
||||
@x == other.x &&
|
||||
@y == other.y &&
|
||||
@z == other.z &&
|
||||
@weight == other.weight
|
||||
else
|
||||
other == self
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user