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:
2020062
)
Improve input validation in command_worldactive().
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 11 Mar 2015 20:52:29 +0000
(21:52 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 11 Mar 2015 20:52:29 +0000
(21:52 +0100)
roguelike-server
patch
|
blob
|
history
diff --git
a/roguelike-server
b/roguelike-server
index 10fbd3680dc4f6930df561f4b0bd103514428e60..d68b4ff204ee6abf6a76032f49e7981d5c860a3e 100755
(executable)
--- a/
roguelike-server
+++ b/
roguelike-server
@@
-1370,7
+1370,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()