home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8ddccb6
)
In client, avoid showing half-finished game states.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 25 Jan 2019 03:06:20 +0000
(
04:06
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 25 Jan 2019 03:06:20 +0000
(
04:06
+0100)
client-curses.py
patch
|
blob
|
history
diff --git
a/client-curses.py
b/client-curses.py
index fa35ffde70578b43a695d90e9db472f657a215ed..ca907db013380f3da7d54b57a7f0dc73c8f11b2d 100755
(executable)
--- a/
client-curses.py
+++ b/
client-curses.py
@@
-53,7
+53,7
@@
class MapHex(Map):
def format_to_view(self, map_string, center, size):
def map_string_to_lines(map_string):
def format_to_view(self, map_string, center, size):
def map_string_to_lines(map_string):
- map_view_chars = ['
+
']
+ map_view_chars = ['
0
']
x = 0
y = 0
for c in map_string:
x = 0
y = 0
for c in map_string:
@@
-64,7
+64,7
@@
class MapHex(Map):
x = 0
y += 1
if y % 2 == 0:
x = 0
y += 1
if y % 2 == 0:
- map_view_chars += ['
+
']
+ map_view_chars += ['
0
']
if y % 2 == 0:
map_view_chars = map_view_chars[:-1]
map_view_chars = map_view_chars[:-1]
if y % 2 == 0:
map_view_chars = map_view_chars[:-1]
map_view_chars = map_view_chars[:-1]
@@
-150,6
+150,8
@@
class Game(game_common.CommonCommandsMixin):
"""Set self.turn to n, empty self.things."""
self.world.turn = n
self.world.things = []
"""Set self.turn to n, empty self.things."""
self.world.turn = n
self.world.things = []
+ self.to_update['turn'] = False
+ self.to_update['map'] = False
cmd_NEW_TURN.argtypes = 'int:nonneg'
def cmd_VISIBLE_MAP_LINE(self, y, terrain_line):
cmd_NEW_TURN.argtypes = 'int:nonneg'
def cmd_VISIBLE_MAP_LINE(self, y, terrain_line):