Small fixes

This commit is contained in:
nsubiron 2019-02-12 12:07:02 +01:00
parent 500904f1db
commit aacdf8a4e9
1 changed files with 7 additions and 9 deletions

View File

@ -309,7 +309,6 @@ class ModuleHUD (object):
x, y = world_to_pixel(location)
angle = 0
size = len(str(actor.id)) * 8
if hero_actor is not None:
angle = -hero_actor.get_transform().rotation.yaw - 90
@ -431,7 +430,6 @@ class MapImage(object):
width_in_pixels = int(self._pixels_per_meter * self._width)
print('Creating map surface {0}x{0}.'.format(width_in_pixels))
self._big_map_surface = pygame.Surface((width_in_pixels, width_in_pixels)).convert()
self.draw_road_map(self._big_map_surface, carla_map, self.world_to_pixel)
self.surface = self._big_map_surface