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:
ff36c2a
)
Fix save_world() bug.
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 26 Aug 2015 03:07:53 +0000
(
05:07
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 26 Aug 2015 03:07:53 +0000
(
05:07
+0200)
roguelike-server
patch
|
blob
|
history
diff --git
a/roguelike-server
b/roguelike-server
index b9eb86bc140cb2e48866cee3e28edcb5c53986ae..adba9bcd586d5873ecd4ed8c2bfec32682401604 100755
(executable)
--- a/
roguelike-server
+++ b/
roguelike-server
@@
-222,7
+222,7
@@
def save_world():
for id in sorted(world_db["Things"].keys()):
if [] != world_db["Things"][id]["T_CARRIES"]:
string = string + "T_ID " + str(id) + "\n"
- for carried in sorted(world_db["Things"][id]["T_CARRIES"]
.keys()
):
+ for carried in sorted(world_db["Things"][id]["T_CARRIES"]):
string = string + "T_CARRIES " + str(carried) + "\n"
string = string + "SEED_RANDOMNESS " + str(rand.seed) + "\n" + \
"WORLD_ACTIVE " + str(world_db["WORLD_ACTIVE"])