mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 14:41:55 +00:00
- fixed signed/unsigned comparison warning.
This commit is contained in:
parent
f1530a051f
commit
551ff89778
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ void StripLoop(TArray<vec2_t>& points)
|
|||
for (int p = 0; p < (int)points.Size(); p++)
|
||||
{
|
||||
unsigned prev = p == 0 ? points.Size() - 1 : p - 1;
|
||||
unsigned next = p == points.Size() - 1 ? 0 : p + 1;
|
||||
unsigned next = unsigned(p) == points.Size() - 1 ? 0 : p + 1;
|
||||
|
||||
if (points[next] == points[prev]) // if the two neighboring points are equal, this one dos not contribute to the sector's area.
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue