From bc386b35da60339f726acbce12f7f7ba30620399 Mon Sep 17 00:00:00 2001 From: Daniel Santos-Olivan Date: Thu, 29 Jul 2021 16:12:33 +0200 Subject: [PATCH] Remove path in map text --- PythonAPI/examples/manual_control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PythonAPI/examples/manual_control.py b/PythonAPI/examples/manual_control.py index bbb814f72..e0b8e0df8 100755 --- a/PythonAPI/examples/manual_control.py +++ b/PythonAPI/examples/manual_control.py @@ -645,7 +645,7 @@ class HUD(object): 'Client: % 16.0f FPS' % clock.get_fps(), '', 'Vehicle: % 20s' % get_actor_display_name(world.player, truncate=20), - 'Map: % 20s' % world.map.name, + 'Map: % 20s' % world.map.name.split('/')[-1], 'Simulation time: % 12s' % datetime.timedelta(seconds=int(self.simulation_time)), '', 'Speed: % 15.0f km/h' % (3.6 * math.sqrt(v.x**2 + v.y**2 + v.z**2)),