X-Git-Url: https://plomlompom.com/repos/?p=plomrogue;a=blobdiff_plain;f=server%2Fworldstate_write_helpers.py;h=cda1bfcea13c23a83db13ecfc5a8d6ae8961fec3;hp=8ec4b354bc2707a80de03d2117d2e65a366bd58d;hb=5cdce6d500080008b097435e2891674c16fde208;hpb=aa19546b06e90c2e6c25a66c4e8c84d84e0c2889 diff --git a/server/worldstate_write_helpers.py b/server/worldstate_write_helpers.py index 8ec4b35..cda1bfc 100644 --- a/server/worldstate_write_helpers.py +++ b/server/worldstate_write_helpers.py @@ -37,12 +37,10 @@ def write_fov_map(): if not world_db["Things"][id]["carried"] if world_db["Things"][id]["T_TYPE"] == tid if world_db["Things"][0]["fovmap"][ - world_db["Things"][id]["T_POSY"] * length - + world_db["Things"][id]["T_POSX"]] == ord_v]: + world_db["Things"][id]["pos"]] == ord_v]: type = world_db["Things"][id]["T_TYPE"] c = ord(world_db["ThingTypes"][type]["TT_SYMBOL"]) - fov[world_db["Things"][id]["T_POSY"] * length - + world_db["Things"][id]["T_POSX"]] = c + fov[world_db["Things"][id]["pos"]] = c return write_map(fov, length) def write_mem_map():