Xonotic
sortlist.qh
Go to the documentation of this file.
1 #pragma once
2 
3 entityclass(Sort);
4 // .float(entity,entity) sort_cmp;
6 
8 
14 #define SORT_SWAP(a, b) \
15  b.sort_prev = a.sort_prev; \
16  a.sort_next = b.sort_next; \
17  if (b.sort_next) b.sort_next.sort_prev = a; \
18  if (a.sort_prev) a.sort_prev.sort_next = b; \
19  a.sort_prev = b; \
20  b.sort_next = a
sort_next
Definition: sortlist.qh:5
entity() spawn
sort_prev
Definition: sortlist.qh:5
entity Sort_Spawn()
Definition: sortlist.qc:4
entity chain
Definition: csprogsdefs.qc:123
classfield(Sort).entity chain
entityclass(Sort)