Small notation

This commit is contained in:
felipecode 2017-11-20 16:34:40 +01:00
parent e59f5ee2ef
commit f3464e2ed8
1 changed files with 2 additions and 1 deletions

View File

@ -134,10 +134,11 @@ class CarlaGame(object):
self._on_new_episode()
def _on_new_episode(self):
print('Requesting new episode...')
scene = self.client.load_settings(make_carla_settings())
number_of_player_starts = len(scene.player_start_spots)
player_start = np.random.randint(number_of_player_starts)
print('Starting new episode...')
self.client.start_episode(player_start)
self._timer = Timer()
self._is_on_reverse = False