Skip to content

Commit

Permalink
#267 Fixed last_centermap
Browse files Browse the repository at this point in the history
  • Loading branch information
lxgr-linux committed May 15, 2023
1 parent 717cdc0 commit 533e862
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pokete.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,16 +736,17 @@ def save():
old_map = figure.oldmap.name
x = figure.x
y = figure.y
last_center_map = figure.last_center_map.name
if modeProvider.mode == Mode.MULTI:
_map, old_map, x, y = connector.connector.saved_pos
_map, old_map, last_center_map, x, y = connector.connector.saved_pos

_si = {
"user": figure.name,
"represent_char": figure.char,
"ver": VERSION,
"map": _map,
"oldmap": old_map,
"last_center_map": figure.last_center_map.name,
"last_center_map": last_center_map,
"x": x,
"y": y,
"achievements": achievements.achieved,
Expand Down
1 change: 1 addition & 0 deletions pokete_classes/multiplayer/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def handshake(self):
self.saved_pos = (
self.figure.map.name,
self.figure.oldmap.name,
self.figure.last_center_map.name,
self.figure.x,
self.figure.y,
)
Expand Down

0 comments on commit 533e862

Please sign in to comment.