瀏覽代碼

Merge pull request #477 from DavidWyand-GG/AudioData

Allow audioData.cs.dso to execute
David Wyand 12 年之前
父節點
當前提交
1684501ad0
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Templates/Empty/game/scripts/client/init.cs
  2. 1 1
      Templates/Full/game/scripts/client/init.cs

+ 1 - 1
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

+ 1 - 1
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