X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_casings.qc;h=b9ad94e3f3910ec90f254a9a4ded0b3f2e9646e7;hb=b800544899fb0c516022ab01b21b94ef6db84ab1;hp=2ef04be17cf98ec2f1078db85cbc3959e4e84fa6;hpb=845401fd312c66c059aaee1772ac5d79555ab4fc;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/g_casings.qc b/qcsrc/server/g_casings.qc index 2ef04be17..b9ad94e3f 100644 --- a/qcsrc/server/g_casings.qc +++ b/qcsrc/server/g_casings.qc @@ -1,4 +1,8 @@ -float Casing_SendEntity(entity to, float sf) +#include "_all.qh" + +#include "../common/util.qh" + +float Casing_SendEntity(entity to, int sf) { WriteByte(MSG_ENTITY, ENT_CLIENT_CASING); WriteByte(MSG_ENTITY, self.state); // actually type @@ -12,7 +16,7 @@ float Casing_SendEntity(entity to, float sf) return true; } -void SpawnCasing(vector vel, float randomvel, vector ang, vector avel, float randomavel, float casingtype, entity casingowner) +void SpawnCasing(vector vel, float randomvel, vector ang, vector avel, float randomavel, int casingtype, entity casingowner) { entity e; vector org;