munificent / game-programming-patterns

Source repo for the book
http://gameprogrammingpatterns.com/
Other
4.03k stars 495 forks source link

Typo in Spatial Partition chapter #343

Open zhuyidiwow opened 5 years ago

zhuyidiwow commented 5 years ago

Should "even through" be "even though" here?

Here, B is within A’s attack radius even through their centerpoints are in different cells. To handle this, we will need to compare units not only in the same cell, but in neighboring cells too. To do this, first we’ll split the inner loop out of handleCell():