Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit a7c0a01

Browse files
committed
Fix a typo/minor mistake in spatial partition grid
1 parent 18e835a commit a7c0a01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

System/SpatialPartitionGrid.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ namespace RTE {
180180
// Lua sometimes decides to give SceneMan an ignoreTeam value of... -2.
181181
// Yeah, seriously.
182182
// So let's sanity check this shit.
183-
ignoreTeam = ignoreTeam < Activity::NoTeam || ignoreTeam > Activity::MaxTeamCount ? Activity::NoTeam : ignoreTeam;
183+
ignoreTeam = ignoreTeam < Activity::NoTeam || ignoreTeam >= Activity::MaxTeamCount ? Activity::NoTeam : ignoreTeam;
184184

185185
auto &cells = getsHitByMOsOnly ? m_PhysicsCells : m_Cells;
186186
return cells[ignoreTeam + 1][GetCellIdForCellCoords(cellX, cellY)];

0 commit comments

Comments
 (0)