home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Improve input validation in command_worldactive().
[plomrogue]
/
roguelike-server
diff --git
a/roguelike-server
b/roguelike-server
index 9361fb8bc8eed940d896ea86977cac3bc31b1162..0b9af475806fee19e756484cbc064b3bd29ce500 100755
(executable)
--- a/
roguelike-server
+++ b/
roguelike-server
@@
-1290,7
+1290,7
@@
def command_worldactive(worldactive_string):
map. On activation, rebuild all Things' FOVs, and the player's map memory.
"""
val = integer_test(worldactive_string, 0, 1)
- if val:
+ if
None !=
val:
if 0 != world_db["WORLD_ACTIVE"]:
if 0 == val:
set_world_inactive()