| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/games/linux-ut/files/ |
Upload File : |
--- bin/ut.orig 2005-03-01 03:04:02.000000000 -0600
+++ bin/ut 2009-06-14 17:05:12.000000000 -0500
@@ -68,6 +68,18 @@
cd $GAME_DIR
cd $SUBDIR
+# The Nvidia driver needs this to prevent the speed from being too fast when
+# facing things such as walls.
+sysctl hw.nvidia.version > /dev/null 2>&1
+if [ ${?} -eq 0 ]
+then
+ export __GL_SYNC_TO_VBLANK=${__GL_SYNC_TO_VBLANK:-"1"}
+fi
+
+# This is needed to prevent the following error:
+# XDM authorization key matches an existing client
+export LD_PRELOAD=/usr/lib/libX11.so.6
+
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$PWD
export LD_LIBRARY_PATH
@@ -75,6 +87,9 @@
./$GAME_BINARY "$CMD_ARGS" "$@"
EXITCODE="$?"
+# Remove the preload before running any other command.
+unset LD_PRELOAD
+
# reset kb layout
setxkbmap