summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2019-02-03 19:42:53 +0100
committerglx22 <glx22@users.noreply.github.com>2019-02-03 19:53:36 +0100
commitbf5898018f3d11662290a2335f45459e12a1dc45 (patch)
treecde98fafc84fa8fe48cac5a2ef829da8482582ee
parentde5614a4d80802af77a7dc17001fee5733bed036 (diff)
downloadopenttd-bf5898018f3d11662290a2335f45459e12a1dc45.tar.xz
Fix #7171: incorrect modified status with determineversion.vbs
-rwxr-xr-xprojects/determineversion.vbs3
1 files changed, 2 insertions, 1 deletions
diff --git a/projects/determineversion.vbs b/projects/determineversion.vbs
index 1446b6e43..98c704553 100755
--- a/projects/determineversion.vbs
+++ b/projects/determineversion.vbs
@@ -56,7 +56,7 @@ Function DetermineVersion()
Set WshShell = CreateObject("WScript.Shell")
On Error Resume Next
- modified = 1
+ modified = 0
hash = ""
shorthash = ""
branch = ""
@@ -135,6 +135,7 @@ Function DetermineVersion()
rev_file.Close()
ElseIf hash = "" Then
DetermineVersion = "norev000"
+ modified = 1
Else
Dim version, hashprefix
If modified = 0 Then