소스 검색

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