X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=sidebyside;f=server%2Fnew_thing.py;h=5c48177307d26fef4edf6f0092c353aab624ff5d;hb=dfd04a4d5f8736535b5118fd94eff1de6a627830;hp=84bc5917d15ec5abc385fd080579088e0c357504;hpb=d29cadf50b9a1daed21fa1d68a5c86ca5d953856;p=plomrogue
diff --git a/server/new_thing.py b/server/new_thing.py
index 84bc591..5c48177 100644
--- a/server/new_thing.py
+++ b/server/new_thing.py
@@ -16,6 +16,7 @@ def new_Thing(_type, pos=(0, 0)):
thing["T_TYPE"] = _type
thing["T_POSY"] = pos[0]
thing["T_POSX"] = pos[1]
+ thing["pos"] = thing["T_POSY"] * world_db["MAP_LENGTH"] + thing["T_POSX"]
if world_db["WORLD_ACTIVE"] and thing["T_LIFEPOINTS"]:
build_fov_map(thing)
return thing