home · contact · privacy
New client: Remove duplicate code.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 15 Dec 2015 23:26:02 +0000 (00:26 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 15 Dec 2015 23:26:02 +0000 (00:26 +0100)
client_prototype.py

index 53b49b250b7bef6223a90a5c07c665aab80a9586..5bcfee5f641937450155aa63f198d7fc45963112 100644 (file)
@@ -384,20 +384,6 @@ def win_look():
     return offset, winmap_size, winmap
 
 
-def win_look():
-    winmap = ""
-    winmap_size = [0, 0]
-    for line in world_data["look"]:
-        winmap_size[1] = winmap_size[1] if len(line) <= winmap_size[1] \
-            else len(line)
-    for line in world_data["look"]:
-        padding_size = winmap_size[1] - len(line)
-        winmap += line + (" " * padding_size)
-        winmap_size[0] = winmap_size[0] + 1
-    offset = [0, 0]
-    return offset, winmap_size, winmap
-
-
 def win_info():
     winmap = "T: " + str(world_data["turn"]) \
         + " H: " + str(world_data["lifepoints"]) \