From 39d6ede4176ac50acc037f7212a59f4cd14e6b04 Mon Sep 17 00:00:00 2001 From: Anshumaan Singh Date: Tue, 9 Nov 2021 16:07:55 +0530 Subject: [PATCH] Fixed an error caused during map name being called An incorrect attribute call was being made, so `map_name` was changed to `get_map().name` to fix it --- PythonAPI/examples/manual_control_steeringwheel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PythonAPI/examples/manual_control_steeringwheel.py b/PythonAPI/examples/manual_control_steeringwheel.py index cdd551db0..6b7fb7bfe 100755 --- a/PythonAPI/examples/manual_control_steeringwheel.py +++ b/PythonAPI/examples/manual_control_steeringwheel.py @@ -426,7 +426,7 @@ class HUD(object): 'Client: % 16.0f FPS' % clock.get_fps(), '', 'Vehicle: % 20s' % get_actor_display_name(world.player, truncate=20), - 'Map: % 20s' % world.world.map_name, + 'Map: % 20s' % world.world.get_map().name, '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)),