home · contact · privacy
Server: Optimize thing position calculation.
[plomrogue] / server / update_map_memory.py
index cd5323c0b6e6e0c3f06429ca8c232a4f7947e1af..003e0cf54778f8f16aeb1fd65f58b2cace242961 100644 (file)
@@ -56,5 +56,4 @@ def update_map_memory(t, age_map=True):
      if not world_db["Things"][id]["carried"]
      if not world_db["ThingTypes"][world_db["Things"][id]["T_TYPE"]]
                                                               ["TT_LIFEPOINTS"]
-     if ord_v == t["fovmap"][(world_db["Things"][id]["T_POSY"] * maplength)
-                                       + world_db["Things"][id]["T_POSX"]]]
+     if ord_v == t["fovmap"][world_db["Things"][id]["pos"]]]