From: Christian Heller Date: Mon, 2 Mar 2015 04:42:01 +0000 (+0100) Subject: Server/py: Create dummy map in remake_map(). X-Git-Tag: tce~444 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/calendar?a=commitdiff_plain;h=7c9c3b3cc0044de265b845eec1a71d9bc3577105;p=plomrogue Server/py: Create dummy map in remake_map(). --- diff --git a/plomrogue-server.py b/plomrogue-server.py index 99f1c60..4cb138a 100755 --- a/plomrogue-server.py +++ b/plomrogue-server.py @@ -117,7 +117,7 @@ def record(command): def save_world(): - """Save all commands needed to reconstruct current world state.""" + """Save all commands needed to reconstruct current world state.""" # TODO: Misses same optimizations as record() from the original record(). def quote(string): @@ -291,8 +291,8 @@ def play_game(): def remake_map(): - # DUMMY. - print("I'd (re-)make the map now, if only I knew how.") + # DUMMY map creator. + world_db["MAP"] = bytearray(b'.' * (world_db["MAP_LENGTH"] ** 2)) def set_world_inactive():