This repository has been archived by the owner. It is now read-only.
CPopulation done, CCopPed and fixes #344
Merged
Conversation
|
looks good |
src/peds/Population.cpp
Outdated
| int minX = CWorld::GetSectorIndexX(dummy->GetPosition().x - colRadius); | ||
| if (minX < 0) minX = 0; | ||
| int minY = CWorld::GetSectorIndexY(dummy->GetPosition().y - colRadius); | ||
| if (minY < 0) minY = 0; | ||
| int maxX = CWorld::GetSectorIndexX(dummy->GetPosition().x + colRadius); | ||
| if (maxX > NUMSECTORS_X) maxX = NUMSECTORS_X; | ||
| int maxY = CWorld::GetSectorIndexY(dummy->GetPosition().y + colRadius); | ||
| if (maxY > NUMSECTORS_Y) maxY = NUMSECTORS_Y; |
Comment on lines
1012
to
1019
ghost
Mar 7, 2020
min/max?
min/max?
erorcun
Mar 9, 2020
Author
Collaborator
aap does the same, and there are many places that I may need to change if I attempt that, so I don't wanna do that :/
aap does the same, and there are many places that I may need to change if I attempt that, so I don't wanna do that :/
7dcb26e
to
5460954
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
No description provided.