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:
8ab4874
)
Server: Fix bug in thingproliferation().
author
Christian Heller
<c.heller@plomlompom.de>
Mon, 22 Feb 2016 01:05:44 +0000
(
02:05
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Mon, 22 Feb 2016 01:05:44 +0000
(
02:05
+0100)
server/world.py
patch
|
blob
|
history
diff --git
a/server/world.py
b/server/world.py
index e50774ca716158e4ce42415a25485f82ec461347..c18715962c801022a91b904e1a6eaa010d9c7ae3 100644
(file)
--- a/
server/world.py
+++ b/
server/world.py
@@
-19,7
+19,7
@@
def thingproliferation(t, prol_map):
for dir in [directions_db[key] for key in sorted(directions_db.keys())]:
mv_result = mv_yx_in_dir_legal(dir, t["T_POSY"], t["T_POSX"])
c = prol_map[mv_result[1] + world_db["MAP_LENGTH"] + mv_result[2]]
- if mv_result[0] and
c
in symbols_passable:
+ if mv_result[0] and
str(c)
in symbols_passable:
candidates.append((mv_result[1], mv_result[2]))
if len(candidates):
i = rand.next() % len(candidates)