diff --git a/Templates/Empty/game/scripts/client/init.cs b/Templates/Empty/game/scripts/client/init.cs index 4698b8c47..fa9a8b8f9 100644 --- a/Templates/Empty/game/scripts/client/init.cs +++ b/Templates/Empty/game/scripts/client/init.cs @@ -110,7 +110,7 @@ function initClient() setDefaultFov( $pref::Player::defaultFov ); setZoomSpeed( $pref::Player::zoomSpeed ); - if( isFile( "./audioData.cs" ) ) + if( isScriptFile( expandFilename("./audioData.cs") ) ) exec( "./audioData.cs" ); // Start up the main menu... this is separated out into a diff --git a/Templates/Full/game/scripts/client/init.cs b/Templates/Full/game/scripts/client/init.cs index 29a10976b..3f7f2d96a 100644 --- a/Templates/Full/game/scripts/client/init.cs +++ b/Templates/Full/game/scripts/client/init.cs @@ -124,7 +124,7 @@ function initClient() setDefaultFov( $pref::Player::defaultFov ); setZoomSpeed( $pref::Player::zoomSpeed ); - if( isFile( "./audioData.cs" ) ) + if( isScriptFile( expandFilename("./audioData.cs") ) ) exec( "./audioData.cs" ); // Start up the main menu... this is separated out into a