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:
d463326
)
Improve input validation in command_worldactive().
author
Christian Heller
<c.heller@plomlompom.de>
Tue, 1 Sep 2015 01:06:12 +0000
(
03:06
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Tue, 1 Sep 2015 01:06:12 +0000
(
03:06
+0200)
roguelike-server
patch
|
blob
|
history
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()