mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-04 03:00:58 +00:00
- replaced swapptr with std::swap.
This commit is contained in:
parent
e5cf57917e
commit
b2105f28e1
5 changed files with 27 additions and 50 deletions
|
@ -917,8 +917,8 @@ static int32_t partition(uint16_t *indexes, float *depths, int32_t f, int32_t l)
|
|||
down--;
|
||||
if (up < down)
|
||||
{
|
||||
swapfloat(&depths[up], &depths[down]);
|
||||
swapshort(&indexes[up], &indexes[down]);
|
||||
std::swap(depths[up], depths[down]);
|
||||
std::swap(indexes[up], indexes[down]);
|
||||
}
|
||||
}
|
||||
while (down > up);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue