From nobody Tue Feb 14 12:38:35 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PGLNW22Wfz3rtnw; Tue, 14 Feb 2023 12:38:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PGLNW1j4qz3vgB; Tue, 14 Feb 2023 12:38:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676378315; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+4TGwuYTq9U+8ID2T3ncrgtABI2vD2hBDeukf1Ck1sU=; b=E86QicHehoLlYFHq2Upf/zCtYuvJyoDBSWBbtk/EgJI5DlnVFtk8CfHoBSCZYk5BcJ2ZS/ b6NhHpSuxnfFueSunVWpsraZHeAPBZWn1jh44UKMnv1/uWa98YrZebsqAPWYyiBjSL3Z3v vkDKc3bPJFJBOlUxz3tpetTiL40bYyIKbla0QYsLrSBLg1zZfB71xamd8vQ+k59J1BCASg KQfCJDTtIW1m8lAHQpNEPCdF8eAqREMdJIdism+7lxced/kp51ewNCWgJppavwq07h4FJA 754kFhlkxcG72v6LDEWsIewa0rmAnnUVePL90CN2oN3SaUGMCG7xBrj25UdZdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676378315; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+4TGwuYTq9U+8ID2T3ncrgtABI2vD2hBDeukf1Ck1sU=; b=QqPtCGYtVdIjsdnDFtnX3mJO4OHGkL+ydEhA1wRJGrnDexAQ4YVtvpOG6iLLNBlXX1ke0n jFAGbQJgaFQgs6ezk4Ncs2erP0esuXyQeHmgi6NkzIo5TSgFngErU7qMhdT0GkGnO6jCs9 CKA1McpO4O+cPCHrMba8ldeBMmq1K8B23wc8xN15dxrCo2ZvApl8wydJTvqTMIPhQTXcl6 lAggToR0H+4CAD1oRqocDAfs/zL4v+udziLcxsW8OvOg8qqzCFzN4Rz4UYeAq7yZfe2hAO 0yO7Pn9LqyZCDXvUNa/zYbBlhjLJPYhbbUZBFzt60CBcji/JFxxMyp26cvxM1Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676378315; a=rsa-sha256; cv=none; b=Km2Q7uxBWCa5gSVUXzTtFMAvXlep1994/oqpWAhlwI+eQg858cdzdu2f8HDtqLP7A8GJ0N xWjOWk7NxlvpxYqar3OEjvr8VHl2PEvh9TAlh6BRdoy5M2DcF+EbSTg/Cu5OzMGcB9fXF6 U7ZnS2jcQglxTREpz0p95eQSZXD/aOh4/YU8mA7otYdGT9QsN0u5IXLKRXiMDIuQVE4zLo zWp18/LYGOQ0LfwcO/NCuAl/CSvES7Sl07NfxpwCvzlkfa6uaG5KzCxLAZRMMKSpjybYUf x4hpXhT/AK5/pfnupzlSSNAwqKCMaOhvk0CJ9v/vX2PtAj2EPjVSo0T57ibhdA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PGLNW0kDQz104J; Tue, 14 Feb 2023 12:38:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31ECcZL3087128; Tue, 14 Feb 2023 12:38:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31ECcZeq087127; Tue, 14 Feb 2023 12:38:35 GMT (envelope-from git) Date: Tue, 14 Feb 2023 12:38:35 GMT Message-Id: <202302141238.31ECcZeq087127@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: =?utf-8?Q?Fernando=20Apestegu=C3=ADa?= Subject: git: 3c8ea1caeedb - main - games/assaultcube: Update to 1.3.0.2 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fernape X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3c8ea1caeedb246697b79bdb5c215fe4567247c6 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/ports/commit/?id=3c8ea1caeedb246697b79bdb5c215fe4567247c6 commit 3c8ea1caeedb246697b79bdb5c215fe4567247c6 Author: Kevin Zheng AuthorDate: 2023-02-13 13:15:41 +0000 Commit: Fernando ApesteguĂ­a CommitDate: 2023-02-14 12:34:07 +0000 games/assaultcube: Update to 1.3.0.2 Submitter becomes maintainer, already maintainer of several ports. The PORT_ENET option no longer compiles, so remove it. The MASTER server option is also currently broken, but players playing the game or running a dedicated server should not need to run it, so disable this option for now. While here, pet linters. ChangeLog: https://assault.cubers.net/docs/history.html * the server sends messages so you know what data was used for shuffeling (random < match < vita) * switching to spectator only incurs respawn delay, not suicide/teamkill * the overview spectator can now see the flags in tilted-model or radar-like ways through overviewflags setting * connect protocol waits for authentication with the masterserver before connecting * register connect protocol script for linux PR: 269505 Reported by: kevinz5000@gmail.com (maintainer) --- games/assaultcube/Makefile | 59 ++--- games/assaultcube/distinfo | 5 +- .../files/patch-fixes-for-GCC-and-Clang.diff | 259 --------------------- games/assaultcube/files/patch-source_enet_unix.c | 20 -- games/assaultcube/files/patch-source_src_console.h | 17 -- .../assaultcube/files/patch-source_src_master.cpp | 11 - 6 files changed, 27 insertions(+), 344 deletions(-) diff --git a/games/assaultcube/Makefile b/games/assaultcube/Makefile index aaf69d0664f2..e8a45f11bd3d 100644 --- a/games/assaultcube/Makefile +++ b/games/assaultcube/Makefile @@ -1,12 +1,9 @@ PORTNAME= assaultcube -PORTVERSION= 1.2.0.2 -PORTREVISION= 7 +PORTVERSION= 1.3.0.2 CATEGORIES= games -MASTER_SITES= SF/actiongame/AssaultCube%20Version%20${PORTVERSION} -DISTNAME= AssaultCube_v${PORTVERSION} -MAINTAINER= ports@FreeBSD.org -COMMENT= Total conversion of the FPS game called Cube +MAINTAINER= kevinz5000@gmail.com +COMMENT= Free, multiplayer, first-person shooter game based on the CUBE engine WWW= https://assault.cubers.net/ LICENSE= ACUBE CUBE MIT OTHER @@ -22,42 +19,43 @@ LICENSE_PERMS_CUBE= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept LICENSE_PERMS_OTHER= dist-mirror pkg-mirror auto-accept USES= gmake tar:bzip2 + +USE_GITHUB= yes +GH_ACCOUNT= assaultcube +GH_PROJECT= AC +GH_TAGNAME= v1.3.0.2 + LDFLAGS_i386= -Wl,-znotext -WRKSRC= ${WRKDIR}/AssaultCube_v${PORTVERSION} -BUILD_WRKSRC= ${WRKSRC}/source/src SUB_FILES= ${PLIST_FILES:Mbin/*:T} +BUILD_WRKSRC= ${WRKSRC}/source/src -PORTDATA= config packages scripts -PORTDOCS= * PLIST_DIRS= ${DATADIR}/packages/maps/servermaps/incoming +PORTDATA= config packages -OPTIONS_DEFINE= DOCS PORT_ENET -OPTIONS_MULTI= BUILD -OPTIONS_MULTI_BUILD= CLIENT DEDICATED MASTER OPTIONS_DEFAULT= CLIENT DEDICATED +OPTIONS_MULTI= BUILD +OPTIONS_MULTI_BUILD= CLIENT DEDICATED #MASTER is currently broken CLIENT_DESC= Build client -CLIENT_USES= compiler:c++11-lang gettext-runtime gl openal:al sdl \ - xorg -CLIENT_USE= GL=gl SDL=image,sdl XORG=x11 +DEDICATED_DESC= Build dedicated server + CLIENT_LIB_DEPENDS= libvorbisfile.so:audio/libvorbis \ libcurl.so:ftp/curl +CLIENT_USES= compiler:c++11-lang desktop-file-utils gettext-runtime gl openal:al sdl \ + xorg +CLIENT_USE= GL=gl SDL=sdl2,image2 XORG=x11 CLIENT_ALL_TARGET= client CLIENT_DESKTOP_ENTRIES= "AssaultCube" "${COMMENT}" \ - "${PREFIX}/share/pixmaps/${PORTNAME}.png" "${PORTNAME}_client" \ + "${PORTNAME}" "${PORTNAME}_client" \ "Game;" false CLIENT_PLIST_FILES= bin/${PORTNAME}_client libexec/${PORTNAME}_client \ share/pixmaps/${PORTNAME}.png -DEDICATED_DESC= Build dedicated server DEDICATED_ALL_TARGET= server DEDICATED_PLIST_FILES= bin/${PORTNAME}_server libexec/${PORTNAME}_server -MASTER_DESC= Build master server -MASTER_ALL_TARGET= master -MASTER_PLIST_FILES= bin/${PORTNAME}_master libexec/${PORTNAME}_master -PORT_ENET_DESC= Use libenet from net/enet -PORT_ENET_CONFIGURE_OFF= --enable-shared=no --enable-static=yes -PORT_ENET_LIB_DEPENDS= libenet.so:net/enet -PORT_ENET_VARS_OFF= GNU_CONFIGURE=yes CONFIGURE_WRKSRC="${WRKSRC}/source/enet" + +#MASTER_DESC= Build master server +#MASTER_ALL_TARGET= master +#MASTER_PLIST_FILES= bin/${PORTNAME}_master libexec/${PORTNAME}_master post-patch: .SILENT ${REINPLACE_CMD} -e '/^CXXFLAGS=/d ; /^CXX=/d ; /^CLIENT_PCH/d ; \ @@ -69,20 +67,11 @@ post-patch: .SILENT /^SERVER_LIBS=/s|$$| $$(LDFLAGS) -L$$(LOCALBASE)/lib|' \ ${BUILD_WRKSRC}/Makefile -post-patch-PORT_ENET-on: - @${REINPLACE_CMD} -i '.port_enet.bak' -e 's/libenet // ; \ - s|-I\.\./enet/include|| ; \ - s|-L\.\./enet/\.libs||' \ - ${BUILD_WRKSRC}/Makefile - do-install: (cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDATA}" ${STAGEDIR}${DATADIR}) -do-install-DOCS-on: - (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) - do-install-CLIENT-on: - ${INSTALL_DATA} ${WRKSRC}/docs/images/icon.png \ + ${INSTALL_DATA} ${WRKSRC}/packages/misc/icon.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png .for f in client master server diff --git a/games/assaultcube/distinfo b/games/assaultcube/distinfo index a0924fc4a36a..a19afe1053a5 100644 --- a/games/assaultcube/distinfo +++ b/games/assaultcube/distinfo @@ -1,2 +1,3 @@ -SHA256 (AssaultCube_v1.2.0.2.tar.bz2) = 77ac41bdf07f6d74367e29089c2ee34da5ef53fdf979d7dfad58c3edce5f0717 -SIZE (AssaultCube_v1.2.0.2.tar.bz2) = 52975325 +TIMESTAMP = 1676156238 +SHA256 (assaultcube-AC-1.3.0.2-v1.3.0.2_GH0.tar.gz) = 05f21db1f20ee5cc8f83c2cd4e8746f16224654343959f29a4902859479e2dec +SIZE (assaultcube-AC-1.3.0.2-v1.3.0.2_GH0.tar.gz) = 51034819 diff --git a/games/assaultcube/files/patch-fixes-for-GCC-and-Clang.diff b/games/assaultcube/files/patch-fixes-for-GCC-and-Clang.diff deleted file mode 100644 index f22b9a087d35..000000000000 --- a/games/assaultcube/files/patch-fixes-for-GCC-and-Clang.diff +++ /dev/null @@ -1,259 +0,0 @@ -# Origin: https://github.com/assaultcube/AC/commit/6e4b23734f115888ce73907a85739ec833a333fd -# Subject: fix clang warnings -# Origin: https://github.com/assaultcube/AC/commit/752950989b4e286459ca9aee3d61a868d7b20fa4 -# Subject: fix some errors and warnings for GCC 6 - ---- source/src/bot/bot_waypoint.cpp.orig 2013-11-10 18:50:03 UTC -+++ source/src/bot/bot_waypoint.cpp -@@ -848,7 +848,7 @@ void CWaypointClass::DeleteWaypoint(vec - - if (!pWP) - { -- conoutf("Error: Couldn´t find near waypoint"); -+ conoutf("Error: Couldn't find near waypoint"); - return; - } - -@@ -1221,7 +1221,7 @@ void CWaypointClass::CalcCost(node_s *pN - flCost += (1.0f-flFraction)*0.5f; - } - -- if ((abs(a) > 4) || (abs(b) > 4)) continue; -+ if ((iabs(a) > 4) || (iabs(b) > 4)) continue; - - vec from = to; - to.z -= (JUMP_HEIGHT - 1.0f); -@@ -1249,7 +1249,7 @@ void CWaypointClass::CalcCost(node_s *pN - flCost += (1.0f-flFraction)*0.5f; - } - -- if ((abs(a) > 4) || (abs(b) > 4)) continue; -+ if ((iabs(a) > 4) || (iabs(b) > 4)) continue; - - vec from = to; - to.z -= (JUMP_HEIGHT - 1.0f); -@@ -1671,12 +1671,12 @@ node_s *CWaypointClass::GetNearestTrigge - void CWaypointClass::GetNodeIndexes(const vec &v_origin, short *i, short *j) - { - // Function code by cheesy and PMB -- //*i = abs((int)((int)(v_origin.x + (2*ssize)) / SECTOR_SIZE)); -- //*j = abs((int)((int)(v_origin.y + (2*ssize)) / SECTOR_SIZE)); -+ //*i = iabs((int)((int)(v_origin.x + (2*ssize)) / SECTOR_SIZE)); -+ //*j = iabs((int)((int)(v_origin.y + (2*ssize)) / SECTOR_SIZE)); - //*i = (int)((v_origin.x) / ssize * MAX_MAP_GRIDS); - //*j = (int)((v_origin.y) / ssize * MAX_MAP_GRIDS); -- *i = abs((int)((v_origin.x) / MAX_MAP_GRIDS)); -- *j = abs((int)((v_origin.y) / MAX_MAP_GRIDS)); -+ *i = iabs((int)((v_origin.x) / MAX_MAP_GRIDS)); -+ *j = iabs((int)((v_origin.y) / MAX_MAP_GRIDS)); - - if (*i > MAX_MAP_GRIDS - 1) - *i = MAX_MAP_GRIDS - 1; ---- source/src/command.cpp.orig 2013-11-09 18:48:58 UTC -+++ source/src/command.cpp -@@ -497,7 +497,7 @@ char *executeret(const char *p) - if(lc<=seer_t1.length()) - { - int dt = seer_t1[seer_index] - seer_t1[lc]; -- if(abs(dt)<2) -+ if(iabs(dt)<2) - { - conoutf("SCRIPT EXECUTION warning [%d:%s]", &p, p); - seer_t2.add(seer_t1[seer_index]); ---- source/src/command.h.orig 2013-10-22 18:57:19 UTC -+++ source/src/command.h -@@ -86,6 +86,7 @@ enum { IEXC_CORE = 0, IEXC_CFG, IEXC_PRO - #define VARNP(name, global, min, cur, max) int global = variable(#name, min, cur, max, &global, NULL, true) - #define VARF(name, min, cur, max, body) extern int name; void var_##name() { body; } int name = variable(#name, min, cur, max, &name, var_##name, false) - #define VARFP(name, min, cur, max, body) extern int name; void var_##name() { body; } int name = variable(#name, min, cur, max, &name, var_##name, true) -+#define VARNFP(name, global, min, cur, max, body) extern int global; void var_##name() { body; } int global = variable(#name, min, cur, max, &global, var_##name, true) - - #define FVARP(name, min, cur, max) float name = fvariable(#name, min, cur, max, &name, NULL, true) - #define FVAR(name, min, cur, max) float name = fvariable(#name, min, cur, max, &name, NULL, false) ---- source/src/crypto.cpp.orig 2013-10-09 08:27:37 UTC -+++ source/src/crypto.cpp -@@ -763,7 +763,7 @@ bool hashstring(const char *str, char *r - const char *genpwdhash(const char *name, const char *pwd, int salt) - { - static string temp; -- formatstring(temp)("%s %d %s %s %d", pwd, salt, name, pwd, abs(PROTOCOL_VERSION)); -+ formatstring(temp)("%s %d %s %s %d", pwd, salt, name, pwd, iabs(PROTOCOL_VERSION)); - tiger::hashval hash; - tiger::hash((uchar *)temp, (int)strlen(temp), hash); - formatstring(temp)("%llx %llx %llx", hash.chunks[0], hash.chunks[1], hash.chunks[2]); ---- source/src/editing.cpp.orig 2013-10-22 18:57:16 UTC -+++ source/src/editing.cpp -@@ -126,11 +126,11 @@ void checkselections() - void makesel(bool isnew) - { - block &cursel = sels.last(); //RR 10/12/12 - FIXEME, error checking should happen with "isnew", not here checking if it really is new. -- if(isnew || sels.length() == 0) addselection(min(lastx, cx), min(lasty, cy), abs(lastx-cx)+1, abs(lasty-cy)+1, max(lasth, ch)); -+ if(isnew || sels.length() == 0) addselection(min(lastx, cx), min(lasty, cy), iabs(lastx-cx)+1, iabs(lasty-cy)+1, max(lasth, ch)); - else - { - cursel.x = min(lastx, cx); cursel.y = min(lasty, cy); -- cursel.xs = abs(lastx-cx)+1; cursel.ys = abs(lasty-cy)+1; -+ cursel.xs = iabs(lastx-cx)+1; cursel.ys = iabs(lasty-cy)+1; - cursel.h = max(lasth, ch); - correctsel(cursel); - } -@@ -645,7 +645,7 @@ void movemap(int xo, int yo, int zo) // - } - if(xo || yo) - { -- block b = { max(-xo, 0), max(-yo, 0), ssize - abs(xo), ssize - abs(yo) }, *cp = blockcopy(b); -+ block b = { max(-xo, 0), max(-yo, 0), ssize - iabs(xo), ssize - iabs(yo) }, *cp = blockcopy(b); - cp->x = max(xo, 0); - cp->y = max(yo, 0); - blockpaste(*cp); ---- source/src/entity.h.orig 2013-10-22 18:57:16 UTC -+++ source/src/entity.h -@@ -540,7 +540,7 @@ public: - { - const int maxskin[2] = { 4, 6 }; - t = team_base(t < 0 ? team : t); -- nextskin[t] = abs(s) % maxskin[t]; -+ nextskin[t] = iabs(s) % maxskin[t]; - } - }; - ---- source/src/main.cpp.orig 2013-10-29 09:33:15 UTC -+++ source/src/main.cpp -@@ -513,11 +513,11 @@ void setresdata(char *s, enet_uint32 c) - COMMANDF(screenres, "ii", (int *w, int *h) { screenres(*w, *h); }); - - static int curgamma = 100; --VARFP(gamma, 30, 100, 300, -+VARNFP(gamma, vgamma, 30, 100, 300, - { -- if(gamma == curgamma) return; -- curgamma = gamma; -- float f = gamma/100.0f; -+ if(vgamma == curgamma) return; -+ curgamma = vgamma; -+ float f = vgamma/100.0f; - if(SDL_SetGamma(f,f,f)==-1) conoutf("Could not set gamma: %s", SDL_GetError()); - }); - ---- source/src/platform.h.orig 2013-10-22 18:57:19 UTC -+++ source/src/platform.h -@@ -2,14 +2,6 @@ - #ifdef _FORTIFY_SOURCE - #undef _FORTIFY_SOURCE - #endif -- -- #define gamma __gamma --#endif -- --#include -- --#ifdef __GNUC__ -- #undef gamma - #endif - - #include -@@ -19,6 +11,7 @@ - #include - #include - #include -+#include - #ifdef __GNUC__ - #include - #include ---- source/src/rendercubes.cpp.orig 2013-10-22 18:57:16 UTC -+++ source/src/rendercubes.cpp -@@ -202,9 +202,9 @@ void render_flat(int wtex, int x, int y, - else // continue strip - { - int lighterr = lighterror*2; -- if((abs(ol1r-l3->r)r)g)g)b)b)r)r)g)g)b)b)r)g)b)r)g)b) 0) ? --sp : sp]; // restore color - else if(c == 'b') { if(allowblinkingtext && !ignoreblinkingbit) stack[sp] *= -1; } // blinking text - only if allowed - else stack[sp] = c; -- switch(abs(stack[sp])) -+ switch(iabs(stack[sp])) - { - case '0': color = bvec( 2, 255, 128 ); break; // green: player talk - case '1': color = bvec( 96, 160, 255 ); break; // blue: team chat -@@ -380,7 +380,7 @@ static void text_color(char c, char *sta - //default: color = bvec( 255, 255, 255 ); break; - } - int b = (int) (sinf(lastmillis / 200.0f) * 115.0f); -- b = stack[sp] > 0 ? 100 : min(abs(b), 100); -+ b = stack[sp] > 0 ? 100 : min(iabs(b), 100); - glColor4ub(color.x, color.y, color.z, (a * b) / 100); - } - } ---- source/src/tools.h.orig 2013-10-22 18:57:19 UTC -+++ source/src/tools.h -@@ -54,8 +54,7 @@ static inline T min(T a, T b) - { - return a < b ? a : b; - } -- --static inline float round(float x) { return floor(x + 0.5f); } -+inline int iabs(int n) { return labs(n); } - - #define clamp(a,b,c) (max(b, min(a, c))) - #define rnd(x) ((int)(randomMT()&0xFFFFFF)%(x)) ---- source/src/world.cpp.orig 2013-10-22 18:57:19 UTC -+++ source/src/world.cpp -@@ -79,9 +79,9 @@ void remip(const block &b, int level) - || o[i]->ceil!=o[3]->ceil - || o[i]->ftex!=o[3]->ftex - || o[i]->ctex!=o[3]->ctex -- || abs(o[i+1]->r-o[0]->r)>lighterr // perfect mip even if light is not exactly equal -- || abs(o[i+1]->g-o[0]->g)>lighterr -- || abs(o[i+1]->b-o[0]->b)>lighterr -+ || iabs(o[i+1]->r-o[0]->r)>lighterr // perfect mip even if light is not exactly equal -+ || iabs(o[i+1]->g-o[0]->g)>lighterr -+ || iabs(o[i+1]->b-o[0]->b)>lighterr - || o[i]->utex!=o[3]->utex - || o[i]->wtex!=o[3]->wtex) goto c; - } ---- source/src/worldrender.cpp.orig 2013-10-09 08:27:37 UTC -+++ source/src/worldrender.cpp -@@ -270,10 +270,10 @@ void distlod(int &low, int &high, int an - void render_world(float vx, float vy, float vh, float changelod, int yaw, int pitch, float fov, float fovy, int w, int h) - { - loopi(LARGEST_FACTOR) stats[i] = 0; -- min_lod = minimap || (player1->isspectating() && player1->spectatemode == SM_OVERVIEW) ? MAX_LOD : MIN_LOD+abs(pitch)/12; -+ min_lod = minimap || (player1->isspectating() && player1->spectatemode == SM_OVERVIEW) ? MAX_LOD : MIN_LOD+iabs(pitch)/12; - yaw = 360-yaw; - float widef = fov/75.0f; -- int cdist = abs(yaw%90-45); -+ int cdist = iabs(yaw%90-45); - if(cdist<7) // hack to avoid popup at high fovs at 45 yaw - { - min_lod = max(min_lod, (int)(MIN_LOD+(10-cdist)/1.0f*widef)); // less if lod worked better ---- source/src/zip.cpp.orig 2013-10-22 18:57:19 UTC -+++ source/src/zip.cpp -@@ -550,7 +550,7 @@ struct zipstream : stream - bool extractzipfile(ziparchive *a, zipfile *f, const char *name) - { - zipstream *s = new zipstream; -- FILE *target; -+ FILE *target = NULL; - defformatstring(fname)("%s", findfile(name, "wb")); - preparedir(fname); - bool error = false; diff --git a/games/assaultcube/files/patch-source_enet_unix.c b/games/assaultcube/files/patch-source_enet_unix.c deleted file mode 100644 index b148e09dddb8..000000000000 --- a/games/assaultcube/files/patch-source_enet_unix.c +++ /dev/null @@ -1,20 +0,0 @@ ---- source/enet/unix.c.orig 2013-10-22 18:57:22 UTC -+++ source/enet/unix.c -@@ -97,7 +97,7 @@ enet_address_set_host (ENetAddress * add - char buffer [2048]; - int errnum; - --#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) -+#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) - gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum); - #else - hostEntry = gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & errnum); -@@ -150,7 +150,7 @@ enet_address_get_host (const ENetAddress - - in.s_addr = address -> host; - --#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) -+#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) - gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum); - #else - hostEntry = gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & errnum); diff --git a/games/assaultcube/files/patch-source_src_console.h b/games/assaultcube/files/patch-source_src_console.h deleted file mode 100644 index 22352e443fea..000000000000 --- a/games/assaultcube/files/patch-source_src_console.h +++ /dev/null @@ -1,17 +0,0 @@ ---- source/src/console.h.orig 2013-10-09 08:27:31 UTC -+++ source/src/console.h -@@ -127,7 +127,7 @@ - } - }; - --/** WIP ALERT */ -+/** WIP ALERT *//* - struct textinputbuffer_wip - { - string buf; -@@ -257,4 +257,4 @@ - return false; - } - }; -- -+*/ diff --git a/games/assaultcube/files/patch-source_src_master.cpp b/games/assaultcube/files/patch-source_src_master.cpp deleted file mode 100644 index dafcf9df0f74..000000000000 --- a/games/assaultcube/files/patch-source_src_master.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- source/src/master.cpp.orig 2013-10-09 08:27:37 UTC -+++ source/src/master.cpp -@@ -510,7 +510,7 @@ - authreq &a = c.authreqs.add(); - a.reqtime = servtime; - a.id = id; -- uint seed[3] = { starttime, servtime, randomMT() }; -+ uint seed[3] = { (uint)starttime, servtime, randomMT() }; - static vector buf; - buf.setsize(0); - a.answer = genchallenge(u->pubkey, seed, sizeof(seed), buf);