X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Fcsqcmodel%2Finterpolate.qh;h=3ea385cbcd8b5e4918c1f88ed8b3c6eaed9508d4;hb=93828285050f4c7c88bec2a5aa12da41538e5075;hp=e07ad4ade809b39cbeadd5740abc046cb7591554;hpb=289dc834837712c152d42d7755992e8e5ed09deb;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/csqcmodel/interpolate.qh b/qcsrc/lib/csqcmodel/interpolate.qh index e07ad4ade..3ea385cbc 100644 --- a/qcsrc/lib/csqcmodel/interpolate.qh +++ b/qcsrc/lib/csqcmodel/interpolate.qh @@ -19,34 +19,32 @@ * 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 = 1; -const int IFLAG_ANGLES = 2; -const int IFLAG_AUTOANGLES = 4; -const int IFLAG_VALID = 8; -const int IFLAG_PREVALID = 16; -const int IFLAG_TELEPORTED = 32; -const int IFLAG_AUTOVELOCITY = 64; -const int IFLAG_V_ANGLE = 128; -const int IFLAG_V_ANGLE_X = 256; -const int IFLAG_ORIGIN = 512; -#define IFLAG_INTERNALMASK (IFLAG_VALID | IFLAG_PREVALID) +const int IFLAG_VELOCITY = BIT(0); +const int IFLAG_ANGLES = BIT(1); +const int IFLAG_AUTOANGLES = BIT(2); +const int IFLAG_VALID = BIT(3); +const int IFLAG_PREVALID = BIT(4); +const int IFLAG_TELEPORTED = BIT(5); +const int IFLAG_AUTOVELOCITY = BIT(6); +const int IFLAG_V_ANGLE = BIT(7); +const int IFLAG_V_ANGLE_X = BIT(8); +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