From: Simon Cross Date: Sat, 5 Mar 2016 21:57:16 +0000 (+0200) Subject: PEP8 fixes. X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=8f2e7a53419fd646dad02ff5f099db5bb5c4d80e;p=koperkapel.git PEP8 fixes. --- 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)