home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bug that created None id'd things in new worlds.
[plomrogue]
/
roguelike-server
diff --git
a/roguelike-server
b/roguelike-server
index ef3fdbcc5a8491fe71e8f8418f775132b5b1fcbe..db5e93bb61c5282f649c239f4d03a1d1bc1093f9 100755
(executable)
--- a/
roguelike-server
+++ b/
roguelike-server
@@
-33,8
+33,7
@@
def prep_library():
"""Prepare ctypes library at ./libplomrogue.so"""
libpath = ("./libplomrogue.so")
if not os.access(libpath, os.F_OK):
"""Prepare ctypes library at ./libplomrogue.so"""
libpath = ("./libplomrogue.so")
if not os.access(libpath, os.F_OK):
- raise SystemExit("No library " + libpath +
- ", run ./compile-server.sh first?")
+ raise SystemExit("No library " + libpath + ", run ./redo first?")
libpr = ctypes.cdll.LoadLibrary(libpath)
libpr.seed_rrand.restype = ctypes.c_uint32
return libpr
libpr = ctypes.cdll.LoadLibrary(libpath)
libpr.seed_rrand.restype = ctypes.c_uint32
return libpr
@@
-1080,7
+1079,6
@@
def id_setter(id, category, id_store=False, start_at_1=False):
id = id + 1
if id not in world_db[category]:
break
id = id + 1
if id not in world_db[category]:
break
- return None
if id_store:
id_store.id = id
return id
if id_store:
id_store.id = id
return id