X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fsortlist.qc;h=85601aa58cfd03cf6a63237f4d6ac8acf41ae597;hb=ba0988ca930f50286f8cf3b6c114ebc6584964af;hp=225df0ce032a87b5e924c6495d3fcb6a265df1a4;hpb=64b349a338c5355c1b1381ef0987e34c24fae75b;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/sortlist.qc b/qcsrc/client/sortlist.qc index 225df0ce0..85601aa58 100644 --- a/qcsrc/client/sortlist.qc +++ b/qcsrc/client/sortlist.qc @@ -1,3 +1,9 @@ +#if defined(CSQC) + #include "../dpdefs/csprogsdefs.qc" +#elif defined(MENUQC) +#elif defined(SVQC) +#endif + //.float(entity,entity) sort_cmp; .entity sort_next, sort_prev; @@ -92,7 +98,7 @@ void Sort_Finish(entity sort) entity Sort_Get(entity sort, float i) { - for(; sort.sort_next && i > 0; --i) + for(0; sort.sort_next && i > 0; --i) sort = sort.sort_next; return sort; }