summaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2009-01-01 18:18:17 +0000
committerglx <glx@openttd.org>2009-01-01 18:18:17 +0000
commitbf1603230889598469fddc11039e423453c2c25d (patch)
treedf33a2a7e3b0bfcbb43fda4bb7055579cae31e5d /projects
parent5a6d3a601db0c5cb95293227046dc365178bdd82 (diff)
downloadopenttd-bf1603230889598469fddc11039e423453c2c25d.tar.xz
(svn r14780) -Fix (r14777): of course VBS evaluates all parts of a boolean expression
Diffstat (limited to 'projects')
-rwxr-xr-xprojects/determineversion.vbs4
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