From owner-svn-ports-head@FreeBSD.ORG Sun Nov 30 15:08:17 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B43A4A4B; Sun, 30 Nov 2014 15:08:17 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 87A22D0D; Sun, 30 Nov 2014 15:08:17 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id sAUF8HTA016831; Sun, 30 Nov 2014 15:08:17 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id sAUF8H7k016830; Sun, 30 Nov 2014 15:08:17 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <201411301508.sAUF8H7k016830@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Sun, 30 Nov 2014 15:08:17 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r373666 - head/games/quetoo/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Nov 2014 15:08:17 -0000 Author: danfe Date: Sun Nov 30 15:08:16 2014 New Revision: 373666 URL: https://svnweb.freebsd.org/changeset/ports/373666 QAT: https://qat.redports.org/buildarchive/r373666/ Log: Unbreak the build against Clang 3.5.0. Requested by: antoine Modified: head/games/quetoo/files/patch-clang-fixes Modified: head/games/quetoo/files/patch-clang-fixes ============================================================================== --- head/games/quetoo/files/patch-clang-fixes Sun Nov 30 14:58:42 2014 (r373665) +++ head/games/quetoo/files/patch-clang-fixes Sun Nov 30 15:08:16 2014 (r373666) @@ -40,6 +40,41 @@ else if(cmds == 0 && cvars == 1) cmd = cvar; else cmd = NULL; +--- src/cl_ents.c.orig 2007-12-28 07:25:47.000000000 +0800 ++++ src/cl_ents.c 2014-11-30 22:57:36.000000000 +0800 +@@ -168,9 +168,9 @@ void CL_DeltaEntity(frame_t *frame, int + || state->modelindex2 != ent->current.modelindex2 + || state->modelindex3 != ent->current.modelindex3 + || state->modelindex4 != ent->current.modelindex4 +- || abs(state->origin[0] - ent->current.origin[0]) > 512 +- || abs(state->origin[1] - ent->current.origin[1]) > 512 +- || abs(state->origin[2] - ent->current.origin[2]) > 512 ++ || fabsf(state->origin[0] - ent->current.origin[0]) > 512 ++ || fabsf(state->origin[1] - ent->current.origin[1]) > 512 ++ || fabsf(state->origin[2] - ent->current.origin[2]) > 512 + || state->event == EV_PLAYER_TELEPORT + || state->event == EV_OTHER_TELEPORT + ){ +@@ -912,7 +912,7 @@ void CL_CalcViewValues(void){ + ops = &oldframe->playerstate; + + // see if the player entity was teleported this frame +- if(fabs(ops->pmove.origin[0] - ps->pmove.origin[0]) > 256 * 8 ++ if(abs(ops->pmove.origin[0] - ps->pmove.origin[0]) > 256 * 8 + || abs(ops->pmove.origin[1] - ps->pmove.origin[1]) > 256 * 8 + || abs(ops->pmove.origin[2] - ps->pmove.origin[2]) > 256 * 8) + ops = ps; // don't interpolate +--- src/vanctf/m_move.c.orig 2007-12-28 07:25:45.000000000 +0800 ++++ src/vanctf/m_move.c 2014-11-30 22:58:47.000000000 +0800 +@@ -370,7 +370,7 @@ void SV_NewChaseDir(edict_t *actor, edic + } + + // try other directions +- if(((rand()&3) & 1) || abs(deltay) > abs(deltax)){ ++ if(((rand()&3) & 1) || fabsf(deltay) > fabsf(deltax)){ + tdir = d[1]; + d[1] = d[2]; + d[2] = tdir; --- src/qmass/g_cmds.c.orig 2007-12-28 07:25:44.000000000 +0800 +++ src/qmass/g_cmds.c 2013-09-05 14:53:30.000000000 +0800 @@ -724,7 +724,7 @@ void Cmd_Say_f(edict_t *ent, qboolean te