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:
268fc76
)
Server/py: Fix map generation bug.
author
Christian Heller
<c.heller@plomlompom.de>
Sat, 7 Mar 2015 03:34:19 +0000
(
04:34
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Sat, 7 Mar 2015 03:34:19 +0000
(
04:34
+0100)
plomrogue-server.py
patch
|
blob
|
history
diff --git
a/plomrogue-server.py
b/plomrogue-server.py
index e4f98968a2fcf20027ef27a6fb78deaa76ca2959..de1bd420cd2a54650c1b036798e1686081ec5505 100755
(executable)
--- a/
plomrogue-server.py
+++ b/
plomrogue-server.py
@@
-435,6
+435,7
@@
def remake_map():
return True
return False
store_seed = rand.seed
+ rand.seed = world_db["SEED_MAP"]
world_db["MAP"] = bytearray(b'~' * (world_db["MAP_LENGTH"] ** 2))
length = world_db["MAP_LENGTH"]
add_half_width = (not (length % 2)) * int(length / 2)