mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-01 00:21:43 +00:00
- Add a swap overload to make GCC happy.
SVN r2029 (trunk)
This commit is contained in:
parent
f6428e1cbb
commit
0e3c1dc33e
1 changed files with 9 additions and 0 deletions
|
@ -2020,6 +2020,15 @@ void R_SplitVisSprites ()
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
static void swap(vissprite_t *&a, vissprite_t *&b)
|
||||||
|
{
|
||||||
|
vissprite_t *t = a;
|
||||||
|
a = b;
|
||||||
|
b = t;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void R_SortVisSprites (bool (*compare)(vissprite_t *, vissprite_t *), size_t first)
|
void R_SortVisSprites (bool (*compare)(vissprite_t *, vissprite_t *), size_t first)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
Loading…
Reference in a new issue