- # TODO: Aging of MEMDEPTHMAP.
- for memthing in t["T_MEMTHING"]:
- y = world_db["Things"][memthing[0]]["T_POSY"]
- x = world_db["Things"][memthing[0]]["T_POSX"]
- if "v" == chr(t["fovmap"][(y * world_db["MAP_LENGTH"]) + x]):
- t["T_MEMTHING"].remove(memthing)
+ if ord('0') <= t["T_MEMDEPTHMAP"][pos] \
+ and ord('9') >= t["T_MEMDEPTHMAP"][pos] \
+ and not rand.next() % (2 ** (t["T_MEMDEPTHMAP"][pos] - 48)):
+ t["T_MEMDEPTHMAP"][pos] += 1
+ for mt in [mt for mt in t["T_MEMTHING"]
+ if "v" == chr(t["fovmap"][(mt[1] * world_db["MAP_LENGTH"])
+ + mt[2]])]:
+ t["T_MEMTHING"].remove(mt)