X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=sv_main.c;h=edb040364985f235995cb6b9fcfdd2dc597a2d29;hb=20d2ce2e5ff8f811a96d25d2868bf91ee9ab8c69;hp=3f17d4112ac4cd231af9f07b70c45452f025499b;hpb=f5822de9dd7f185161528e3830692ae75bbeef67;p=xonotic%2Fdarkplaces.git diff --git a/sv_main.c b/sv_main.c index 3f17d411..edb04036 100644 --- a/sv_main.c +++ b/sv_main.c @@ -889,7 +889,10 @@ void SV_WriteEntitiesToClient (client_t *client, edict_t *clent, sizebuf_t *msg) // applies the view_ofs[2], so we have to only send the fractional part // of view_ofs[2], undoing what the client will redo) VectorCopy (testeye, testorigin); - testorigin[2] -= (float) ((int)(clent->v.view_ofs[2]) & 255); + e = (int) clent->v.view_ofs[2] & 255; + if (e >= 128) + e -= 256; + testorigin[2] -= (float) e; EntityFrame_Clear(&entityframe, testorigin); culled_pvs = 0;