X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;f=plomrogue%2Fcommands.py;h=6532b72bbe027ebb65d0805025140a49da8145d4;hb=9316d59ddce7a7b8ee70d2b4e111330f1a691e37;hp=3a10a4c24e182aa6b72dd6a41ac575bcb2664d0e;hpb=170cd49bfc99569f4bf004ec48ff60a04786d918;p=plomrogue2 diff --git a/plomrogue/commands.py b/plomrogue/commands.py index 3a10a4c..6532b72 100644 --- a/plomrogue/commands.py +++ b/plomrogue/commands.py @@ -88,6 +88,10 @@ def cmd_LOGIN(game, nick, connection_id): t.name = nick game.io.send('CHAT ' + quote(t.name + ' entered the map.')) game.io.send('PLAYER_ID %s' % t.id_, connection_id) + for s in [s for s in game.things + if s.type_ == 'SpawnPoint' and s.name == t.name]: + t.position = s.position + break game.changed = True cmd_LOGIN.argtypes = 'string'