mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-08 01:10:28 +00:00
(svn r14780) -Fix (r14777): of course VBS evaluates all parts of a boolean expression
This commit is contained in:
parent
56d108edf8
commit
34b211ea99
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user