Merge branch 'master' of git@bitbucket.org:Major-/apollo.git.

This commit is contained in:
Ryley Kimmel
2015-03-03 21:19:06 -05:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ class OpenDoorAction < DistancedAction
end
def equals(other)
return (get_class == other.get_class && @position == other.position)
return (get_class == other.get_class && @door_object == other.door_object)
end
end
+1 -1
View File
@@ -88,7 +88,7 @@ module DoorUtil
# Gets the door object at the given position, if it exists.
def self.get_door_object(position, object_id)
game_objects = $world.sector_repository.from_position(position).get_entities(position, EntityType::GAME_OBJECT)
game_objects.each { |game_object| return game_object if game_object.get_id == object_id }
game_objects.each { |game_object| return game_object if game_object.id == object_id }
return nil
end