Skip to content

Commit 17e35a3

Browse files
committed
Fix more spelling errors
1 parent 4278016 commit 17e35a3

File tree

6 files changed

+20
-17
lines changed

6 files changed

+20
-17
lines changed

rlbot/interface.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def run_after_connect(
158158

159159
def connect(
160160
self,
161-
wants_match_communcations: bool,
161+
wants_match_communications: bool,
162162
wants_ball_predictions: bool,
163163
close_after_match: bool = True,
164164
rlbot_server_port: int = RLBOT_SERVER_PORT,
@@ -192,14 +192,14 @@ def connect(
192192

193193
flatbuffer = flat.ConnectionSettings(
194194
wants_ball_predictions,
195-
wants_match_communcations,
195+
wants_match_communications,
196196
close_after_match,
197197
).pack()
198198
self.send_bytes(flatbuffer, SocketDataType.CONNECTION_SETTINGS)
199199

200200
def connect_and_run(
201201
self,
202-
wants_match_communcations: bool,
202+
wants_match_communications: bool,
203203
wants_ball_predictions: bool,
204204
close_after_match: bool = True,
205205
only_wait_for_ready: bool = False,
@@ -211,7 +211,7 @@ def connect_and_run(
211211
currently bad things happen if the buffer is allowed to fill up.
212212
"""
213213
self.connect(
214-
wants_match_communcations,
214+
wants_match_communications,
215215
wants_ball_predictions,
216216
close_after_match,
217217
rlbot_server_port,

rlbot/managers/bot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,14 @@ def _packet_processor(self, packet: flat.GameTickPacket):
148148

149149
def run(
150150
self,
151-
wants_match_communcations: bool = True,
151+
wants_match_communications: bool = True,
152152
wants_ball_predictions: bool = True,
153153
):
154154
rlbot_server_port = int(os.environ.get("RLBOT_SERVER_PORT", 23234))
155155

156156
try:
157157
self._game_interface.connect(
158-
wants_match_communcations,
158+
wants_match_communications,
159159
wants_ball_predictions,
160160
rlbot_server_port=rlbot_server_port,
161161
)

rlbot/managers/hivemind.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Hivemind:
1818
loggers: list[Logger] = []
1919

2020
team: int = -1
21-
indicies: list[int] = []
21+
indices: list[int] = []
2222
names: list[str] = []
2323
spawn_ids: list[int] = []
2424

@@ -98,16 +98,16 @@ def _handle_packet(self, packet: flat.GameTickPacket):
9898
self._latest_packet = packet
9999

100100
def _packet_processor(self, packet: flat.GameTickPacket):
101-
if len(self.indicies) != len(self.spawn_ids) or any(
102-
packet.players[i].spawn_id not in self.spawn_ids for i in self.indicies
101+
if len(self.indices) != len(self.spawn_ids) or any(
102+
packet.players[i].spawn_id not in self.spawn_ids for i in self.indices
103103
):
104-
self.indicies = [
104+
self.indices = [
105105
i
106106
for i, player in enumerate(packet.players)
107107
if player.spawn_id in self.spawn_ids
108108
]
109109

110-
if len(self.indicies) != len(self.spawn_ids):
110+
if len(self.indices) != len(self.spawn_ids):
111111
return
112112

113113
self.ball_prediction = self._latest_prediction
@@ -127,14 +127,14 @@ def _packet_processor(self, packet: flat.GameTickPacket):
127127

128128
def run(
129129
self,
130-
wants_match_communcations: bool = True,
130+
wants_match_communications: bool = True,
131131
wants_ball_predictions: bool = True,
132132
):
133133
rlbot_server_port = int(os.environ.get("RLBOT_SERVER_PORT", 23234))
134134

135135
try:
136136
self._game_interface.connect(
137-
wants_match_communcations,
137+
wants_match_communications,
138138
wants_ball_predictions,
139139
rlbot_server_port=rlbot_server_port,
140140
)

rlbot/managers/script.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,14 @@ def _handle_ball_prediction(self, ball_prediction: flat.BallPrediction):
9090

9191
def run(
9292
self,
93-
wants_match_communcations: bool = True,
93+
wants_match_communications: bool = True,
9494
wants_ball_predictions: bool = True,
9595
):
9696
rlbot_server_port = int(os.environ.get("RLBOT_SERVER_PORT", 23234))
9797

9898
try:
9999
self._game_interface.connect_and_run(
100-
wants_match_communcations,
100+
wants_match_communications,
101101
wants_ball_predictions,
102102
rlbot_server_port=rlbot_server_port,
103103
)

rlbot/version.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "5.0.0-beta.7"
1+
__version__ = "5.0.0-beta.8"
22

33

44
RESET_SEQ = "\033[0m"
@@ -15,6 +15,9 @@ def _get_color(color: int) -> str:
1515
)
1616

1717
RELEASE_NOTES = {
18+
"5.0.0-beta.8": """
19+
Fix spelling errors in interface
20+
""",
1821
"5.0.0-beta.7": """
1922
Fix spelling error in spec
2023
""",

tests/hivemind/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def get_outputs(
6868
ball_location = Vector2(packet.balls[0].physics.location)
6969

7070
self.controllers.clear()
71-
for i in self.indicies:
71+
for i in self.indices:
7272
self.controllers[i] = flat.ControllerState()
7373

7474
my_car = packet.players[i]

0 commit comments

Comments
 (0)