Fixed Vector#== erroring out with doing Vector == SomeObject

This commit is contained in:
2020-01-30 20:08:17 -06:00
parent a0c0180411
commit 93a4e9a2b8

View File

@@ -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