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:
c7d95b4
)
Server/py: Apply PEP8.
author
Christian Heller
<c.heller@plomlompom.de>
Tue, 3 Mar 2015 11:46:00 +0000
(12:46 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Tue, 3 Mar 2015 11:46:00 +0000
(12:46 +0100)
plomrogue-server.py
patch
|
blob
|
history
diff --git
a/plomrogue-server.py
b/plomrogue-server.py
index 929edbb94d511322ba755dd0d95ab05532dd2e34..b5e4db6bc8db6173391b927dad9960def3bec8d9 100755
(executable)
--- a/
plomrogue-server.py
+++ b/
plomrogue-server.py
@@
-138,8
+138,8
@@
def save_world():
length = world_db["MAP_LENGTH"]
for i in range(length):
line = map[i * length:(i * length) + length].decode()
length = world_db["MAP_LENGTH"]
for i in range(length):
line = map[i * length:(i * length) + length].decode()
- string = string + key + " " + str(i) + " " + quote(line)
+
\
- "\n"
+ string = string + key + " " + str(i) + " " + quote(line) \
+
+
"\n"
return string
return helper
return string
return helper
@@
-750,7
+750,7
@@
def setter_tpos(axis):
world_db["Things"][command_tid.id]["T_POS" + axis] = val
if world_db["WORLD_ACTIVE"] \
and world_db["Things"][command_tid.id]["T_LIFEPOINTS"]:
world_db["Things"][command_tid.id]["T_POS" + axis] = val
if world_db["WORLD_ACTIVE"] \
and world_db["Things"][command_tid.id]["T_LIFEPOINTS"]:
- build_fov_map(
world_db["Things"][command_tid.id])
+ build_fov_map(world_db["Things"][command_tid.id])
if 0 == command_tid.id:
update_map_memory(world_db["Things"][command_tid.id])
else:
if 0 == command_tid.id:
update_map_memory(world_db["Things"][command_tid.id])
else: