home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Server: Make world initialization conf file choosable.
[plomrogue]
/
roguelike-server
diff --git
a/roguelike-server
b/roguelike-server
index abd2f2fcdfb3a41815cb6002ccfd7e8be9b250ce..ac6601e2a0cbb8edcf04ceb2ff091d76f6e573b8 100755
(executable)
--- a/
roguelike-server
+++ b/
roguelike-server
@@
-47,11
+47,10
@@
def play_game():
if os.access(io_db["path_save"], os.F_OK):
obey_lines_in_file(io_db["path_save"], "save")
else:
if os.access(io_db["path_save"], os.F_OK):
obey_lines_in_file(io_db["path_save"], "save")
else:
- if not os.access(
io_db["path_worldconf"]
, os.F_OK):
+ if not os.access(
opts.worldconf
, os.F_OK):
msg = "No world config file from which to start a new world."
raise SystemExit(msg)
msg = "No world config file from which to start a new world."
raise SystemExit(msg)
- obey_lines_in_file(io_db["path_worldconf"], "world config ",
- do_record=True)
+ obey_lines_in_file(opts.worldconf, "world config ", do_record=True)
obey("MAKE_WORLD " + str(int(time.time())), "in file", do_record=True)
while True:
try_worldstate_update()
obey("MAKE_WORLD " + str(int(time.time())), "in file", do_record=True)
while True:
try_worldstate_update()