From 8f2e7a53419fd646dad02ff5f099db5bb5c4d80e Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Sat, 5 Mar 2016 23:57:16 +0200 Subject: [PATCH] PEP8 fixes. --- koperkapel/scenes/level.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/koperkapel/scenes/level.py b/koperkapel/scenes/level.py index 6845ea2..ca20f73 100644 --- a/koperkapel/scenes/level.py +++ b/koperkapel/scenes/level.py @@ -241,9 +241,9 @@ class GameLevelScene(BaseLevelScene): x, y = self._player_pos old_vehicle = world.vehicles.current - + item = self._level.item_at(x, y) - + if item and item.item_type == "vehicle": world.vehicles.current = item.item_data["vehicle"] self._level.remove_item(item) @@ -252,7 +252,8 @@ class GameLevelScene(BaseLevelScene): world.vehicles.current = "walking" if old_vehicle != "walking": - dropped_vehicle = create_new_item("vehicle", (x, y), vehicle=old_vehicle) + dropped_vehicle = create_new_item( + "vehicle", (x, y), vehicle=old_vehicle) self._level.items.append(dropped_vehicle) self._items.add(dropped_vehicle) -- 2.34.1