Fix manual_control choosing only Nissan Patrol

This commit is contained in:
nsubiron 2018-12-21 16:57:49 +01:00
parent 79b328d028
commit 10e9a53844
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ class World(object):
cam_index = self.camera_manager._index if self.camera_manager is not None else 0
cam_pos_index = self.camera_manager._transform_index if self.camera_manager is not None else 0
# Get a random vehicle blueprint.
blueprint = random.choice(self.world.get_blueprint_library().filter('patrol'))
blueprint = random.choice(self.world.get_blueprint_library().filter('vehicle'))
blueprint.set_attribute('role_name', 'hero')
if blueprint.has_attribute('color'):
color = random.choice(blueprint.get_attribute('color').recommended_values)