diff options
author | glx <glx@openttd.org> | 2009-01-01 18:18:17 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2009-01-01 18:18:17 +0000 |
commit | bf1603230889598469fddc11039e423453c2c25d (patch) | |
tree | df33a2a7e3b0bfcbb43fda4bb7055579cae31e5d /projects | |
parent | 5a6d3a601db0c5cb95293227046dc365178bdd82 (diff) | |
download | openttd-bf1603230889598469fddc11039e423453c2c25d.tar.xz |
(svn r14780) -Fix (r14777): of course VBS evaluates all parts of a boolean expression
Diffstat (limited to 'projects')
-rwxr-xr-x | projects/determineversion.vbs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/projects/determineversion.vbs b/projects/determineversion.vbs index c2a87d3db..bcc68456c 100755 --- a/projects/determineversion.vbs +++ b/projects/determineversion.vbs @@ -273,12 +273,12 @@ Function IsCachedVersion(ByVal version) End Function Function CheckFile(filename) - CheckFile = FSO.FileExists(filename) And (FSO.GetFile(filename).DateLastModified >= FSO.GetFile(filename & ".in").DateLastModified) + CheckFile = FSO.FileExists(filename) + If CheckFile Then CheckFile = (FSO.GetFile(filename).DateLastModified >= FSO.GetFile(filename & ".in").DateLastModified) End Function Dim version version = DetermineSVNVersion If Not (IsCachedVersion(version) And CheckFile("../src/rev.cpp") And CheckFile("../src/ottdres.rc")) Then - wscript.echo "update" UpdateFiles version End If |