From: Simon Cross Date: Sat, 5 Mar 2016 19:04:59 +0000 (+0200) Subject: game_pos should be a tuple. X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=52d817ad91bfec1fa892b56ac165b75bfb136bbc;p=koperkapel.git game_pos should be a tuple. --- diff --git a/koperkapel/gamelib/items.py b/koperkapel/gamelib/items.py index b125d44..9ef2ff6 100644 --- a/koperkapel/gamelib/items.py +++ b/koperkapel/gamelib/items.py @@ -22,7 +22,7 @@ ITEM_TYPES = { def get_item(item): item_type = item.pop("type") - game_pos = item.pop("pos") + game_pos = tuple(item.pop("pos")) actor = ITEM_TYPES[item_type](item) actor.game_pos = game_pos actor.anchor = (0, 0)