Fixing conflict

This commit is contained in:
Vishal 2024-03-02 07:54:51 +05:30 committed by GitHub
parent 4fefd20688
commit 1933f67d3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 4 deletions

View File

@ -334,7 +334,7 @@ class Map(Actor):
closest_player_dist = 9999.0
for ppt in player_pts:
dist = (ppt - testpt).length()
closest_player_dist = min(closest_player_dist, dist)
closest_player_dist = min(dist, closest_player_dist)
if closest_player_dist > farthestpt_dist:
farthestpt_dist = closest_player_dist
farthestpt = testpt

View File

@ -538,7 +538,7 @@ class PlaylistCustomizeBrowserWindow(bui.Window):
assert self._selected_playlist_index is not None
self._selected_playlist_index = min(
self._selected_playlist_index,
len(bui.app.config[self._pvars.config_name + ' Playlists'])
len(bui.app.config[self._pvars.config_name + ' Playlists']),
)
self._refresh()

View File

@ -287,8 +287,7 @@ class SoundtrackBrowserWindow(bui.Window):
assert self._selected_soundtrack_index is not None
assert self._soundtracks is not None
self._selected_soundtrack_index = min(
self._selected_soundtrack_index,
len(self._soundtracks)
self._selected_soundtrack_index, len(self._soundtracks)
)
self._refresh()