mirror of
https://github.com/zoffline/zwift-offline.git
synced 2026-08-03 01:15:46 -07:00
Players are nearby if watching the other
This commit is contained in:
@@ -216,6 +216,8 @@ def get_course(state):
|
||||
|
||||
def is_nearby(player_state1, player_state2, range = 100000):
|
||||
try:
|
||||
if player_state1.watchingRiderId == player_state2.id or player_state2.watchingRiderId == player_state1.id:
|
||||
return True
|
||||
course1 = get_course(player_state1)
|
||||
course2 = get_course(player_state2)
|
||||
if course1 == course2:
|
||||
|
||||
Reference in New Issue
Block a user