From: Rudolf Polzer Date: Sun, 9 May 2010 15:35:02 +0000 (+0200) Subject: fix ClientInit entity sending X-Git-Tag: xonotic-v0.1.0preview~638^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8808636abd0af04100a3a307f1cce417babd84d8;p=xonotic%2Fxonotic-data.pk3dir.git fix ClientInit entity sending --- diff --git a/qcsrc/client/hook.qc b/qcsrc/client/hook.qc index 101ab9f01..dbd8ab2ad 100644 --- a/qcsrc/client/hook.qc +++ b/qcsrc/client/hook.qc @@ -16,6 +16,13 @@ void Draw_CylindricLine(vector from, vector to, float thickness, string texture, // direction is perpendicular to the view normal, and perpendicular to the axis thickdir = normalize(cross(axis, view_origin - from)); +/* + print("from ", vtos(from), "\n"); + print("to ", vtos(to), "\n"); + print("org ", vtos(view_origin), "\n"); + print("dir ", vtos(thickdir), "\n"); +*/ + A = from - thickdir * (thickness / 2); B = from + thickdir * (thickness / 2); C = to + thickdir * (thickness / 2); diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index 0ec16a9a3..c4b8bb600 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -1059,7 +1059,6 @@ float ClientInit_SendEntity(entity to, float sf) WriteCoord(MSG_ENTITY, hook_shotorigin_x); WriteCoord(MSG_ENTITY, hook_shotorigin_y); WriteCoord(MSG_ENTITY, hook_shotorigin_z); - if(sv_foginterval && world.fog != "") WriteString(MSG_ENTITY, world.fog); else @@ -1100,10 +1099,11 @@ void ClientInit_Spawn() { entity o; entity e; + e = spawn(); e.classname = "clientinit"; e.think = ClientInit_CheckUpdate; - e.nextthink = time; Net_LinkEntity(e, FALSE, 0, ClientInit_SendEntity); + o = self; self = e; ClientInit_CheckUpdate();