home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Client: Fix inventory selection bug on inventory shrinking.
[plomrogue]
/
server
/
worldstate_write_helpers.py
diff --git
a/server/worldstate_write_helpers.py
b/server/worldstate_write_helpers.py
index 8ec4b354bc2707a80de03d2117d2e65a366bd58d..cda1bfcea13c23a83db13ecfc5a8d6ae8961fec3 100644
(file)
--- 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"][
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"])
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():
return write_map(fov, length)
def write_mem_map():