X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Fsortlist.qh;h=8c362d4305cd98721075bfe84aa8a7a1ab0c4910;hb=ec98f5c9d50f267779fed871c9eb094a52064219;hp=eb8103f8fd51e8c8d7b185f3cd9a87fec4ce2b1b;hpb=349aeb508e5a3d577df60bef8a552da2db7d928d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/sortlist.qh b/qcsrc/lib/sortlist.qh index eb8103f8f..8c362d430 100644 --- a/qcsrc/lib/sortlist.qh +++ b/qcsrc/lib/sortlist.qh @@ -1,9 +1,8 @@ -#ifndef SORTLIST_H -#define SORTLIST_H +#pragma once entityclass(Sort); // .float(entity,entity) sort_cmp; -class(Sort).entity chain, sort_next, sort_prev; +classfield(Sort).entity chain, sort_next, sort_prev; entity Sort_Spawn(); @@ -19,5 +18,3 @@ entity Sort_Spawn(); if (a.sort_prev) a.sort_prev.sort_next = b; \ a.sort_prev = b; \ b.sort_next = a - -#endif