home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14fca6c
)
Server/py: Fix memdepthmapping bug.
author
Christian Heller
<c.heller@plomlompom.de>
Sat, 7 Mar 2015 13:21:46 +0000
(14:21 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Sat, 7 Mar 2015 13:21:46 +0000
(14:21 +0100)
plomrogue-server.py
patch
|
blob
|
history
diff --git
a/plomrogue-server.py
b/plomrogue-server.py
index a3c8f8fd27e25d0a89a04d3ed64a7938fd54b0e0..a44f751313a057e04c432f5ba48df264a9d4e222 100755
(executable)
--- a/
plomrogue-server.py
+++ b/
plomrogue-server.py
@@
-478,7
+478,7
@@
def update_map_memory(t):
t["T_MEMMAP"][pos] = world_db["MAP"][pos]
continue
if ord('0') <= t["T_MEMDEPTHMAP"][pos] \
- and ord('9') >
=
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"]