X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=server%2Fworldstate_write_helpers.py;h=cda1bfcea13c23a83db13ecfc5a8d6ae8961fec3;hb=8c88406d32ad014785ffb195fd34e0b7502ccfc6;hp=8ec4b354bc2707a80de03d2117d2e65a366bd58d;hpb=6f76684b256fdbd680224bdc47d32ef332d1a852;p=plomrogue
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():