X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Fcsqcmodel%2Finterpolate.qh;h=3ea385cbcd8b5e4918c1f88ed8b3c6eaed9508d4;hb=361b8d9cd6ba8dd0363b554a38dbed8b3333ee2a;hp=92ec58f0b4ff7048445a0ef2fbb1ffff8dc8815f;hpb=317ec3eb27ada1c4668876e9499136125acb7984;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/csqcmodel/interpolate.qh b/qcsrc/lib/csqcmodel/interpolate.qh index 92ec58f0b..3ea385cbc 100644 --- a/qcsrc/lib/csqcmodel/interpolate.qh +++ b/qcsrc/lib/csqcmodel/interpolate.qh @@ -19,8 +19,7 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ -#ifndef LIB_CSQCMODEL_INTERPOLATE_H -#define LIB_CSQCMODEL_INTERPOLATE_H +#pragma once .int iflags; const int IFLAG_VELOCITY = BIT(0); @@ -36,17 +35,16 @@ const int IFLAG_ORIGIN = BIT(9); const int IFLAG_INTERNALMASK = IFLAG_VALID | IFLAG_PREVALID; // call this BEFORE reading an entity update -void InterpolateOrigin_Undo(); +void InterpolateOrigin_Undo(entity this); // call this AFTER receiving an entity update -void InterpolateOrigin_Note(); +void InterpolateOrigin_Note(entity this); // call this when the entity got teleported, before InterpolateOrigin_Note -void InterpolateOrigin_Reset(); +void InterpolateOrigin_Reset(entity this); // call this BEFORE drawing -void InterpolateOrigin_Do(); +void InterpolateOrigin_Do(entity this); // in case we interpolate that: .vector v_angle; -#endif