From f9cde509b2303190c7ba16a7ab0d3f0f49f15ec4 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Fri, 14 Oct 2011 17:03:59 +0000 Subject: [PATCH] [18:48:20] Thilo: http://pastebin.com/2UUmSCQK fixes point contents on the server side related to the cg fix with moving water. Dunno why s.origin and s.angles was ever used, the rest of sv_world.c always uses r.currentOrigin and r.currentAngles [18:58:10] mhm [18:58:15] Ensiform: it doesnt break anything? [18:59:20] nah --- code/server/sv_world.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/server/sv_world.c b/code/server/sv_world.c index 6861ef38..665043a0 100644 --- a/code/server/sv_world.c +++ b/code/server/sv_world.c @@ -672,12 +672,12 @@ int SV_PointContents( const vec3_t p, int passEntityNum ) { hit = SV_GentityNum( touch[i] ); // might intersect, so do an exact clip clipHandle = SV_ClipHandleForEntity( hit ); - angles = hit->s.angles; + angles = hit->r.currentAngles; if ( !hit->r.bmodel ) { angles = vec3_origin; // boxes don't rotate } - c2 = CM_TransformedPointContents (p, clipHandle, hit->s.origin, angles); + c2 = CM_TransformedPointContents (p, clipHandle, hit->r.currentOrigin, angles); contents |= c2; }