Skip to content

Commit

Permalink
Fix offset replacing not working and breaking demos when a DRO client…
Browse files Browse the repository at this point in the history
… is present in area
  • Loading branch information
Crystalwarrior committed May 15, 2024
1 parent b2fe9d8 commit 73aec30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/client_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@ def send_command(self, command, *args):
charid_pair = str(args[16])
self_offset_x = 0
if len(args) > 19 and args[19]:
self_offset_x = str(args[19]).split('<and>')[0]
self_offset_x = str(args[19]).replace('<and>', '&').split('&')[0]
offset_pair_x = 0
if len(args) > 20 and args[20]:
offset_pair_x = str(args[20]).split('<and>')[0]
offset_pair_x = str(args[20]).replace('<and>', '&').split('&')[0]

# Pair data detected!
if (charid_pair and charid_pair != "-1") or (self_offset_x and self_offset_x != "0"):
Expand Down
3 changes: 3 additions & 0 deletions server/network/aoprotocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -1433,6 +1433,9 @@ def net_cmd_mc(self, args):
"""
if not self.client.is_checked:
return

if len(args) <= 0:
return

if args[0].split()[0].startswith("🌍["):
# self.client.send_ooc('Switching to the list of Hubs...')
Expand Down

0 comments on commit 73aec30

Please sign in to comment.