X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Fintrusivelist.qh;fp=qcsrc%2Flib%2Fintrusivelist.qh;h=3dee9ca38823011ee7fc27313efcf23d01480f4e;hb=45ff12256c9c1ad461cb9c7f70be3f58574ce38b;hp=938a7f9630dd421e80675ddaa9c0ec379b89aad6;hpb=b9d2c542a0b1f030d0aa80ccedf1c82e0019ba51;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/intrusivelist.qh b/qcsrc/lib/intrusivelist.qh index 938a7f963..3dee9ca38 100644 --- a/qcsrc/lib/intrusivelist.qh +++ b/qcsrc/lib/intrusivelist.qh @@ -268,6 +268,15 @@ void IL_ENDFRAME() #endif } +// clears any IL data from an entity (not an intrusive list) +// it should be used only in very particular cases such as after a copyentity call +void IL_REMOVE_RAW(entity it) +{ + it.il_lists = '0 0 0'; + for (int i = 0; i < IL_MAX * 2; ++i) + it.il_links_flds[i] = nil; +} + // called when an entity is deleted with delete() / remove() // or when a player disconnects void ONREMOVE(entity this)