#!/bin/sh

# Prevent et from resetting unsafe settings to their default value (see
# http://www.splashdamage.com/forums/viewtopic.php?t=3883&highlight=pid).
rm ~/.etwolf/*/profiles/*/profile.pid >/dev/null 2>&1

cd @ETDIR@ || exit 1
# Lower the threshold for when the game starts mixing, otherwise sound will not
# work.
exec ./et.x86 +set s_mixPreStep 0.02 "$@"
