Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Commit

Permalink
fixed bug in update checker
Browse files Browse the repository at this point in the history
  • Loading branch information
joffreybesos committed Jun 8, 2022
1 parent 345ab59 commit fc89bab
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/d2r-map.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Menu, Tray, Add, Reload, Reload
Menu, Tray, Add
Menu, Tray, Add, Exit, ExitMH

global version := "3.0.0"
global version := "2.9.10"

WriteLog("*******************************************************************")
WriteLog("* Map overlay started https://github.com/joffreybesos/d2r-mapview *")
Expand Down
15 changes: 8 additions & 7 deletions src/init/updateCheck.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ CheckForUpdates() {
WriteLog("Latest version on Github is " latesttag " this version is " version)
currenttagarr := StrSplit(version , ".")
latesttagarr := StrSplit(latesttag , ".")
foundnewer := false
if (currenttagarr[1] < latesttagarr[1]) {
foundnewer := true
} else if (currenttagarr[2] < latesttagarr[2]) {
foundnewer := true
} else if (currenttagarr[3] < latesttagarr[3]) {
foundnewer := true
foundnewer := true
if (currenttagarr[1] > latesttagarr[1]) {
foundnewer := false
} else if (currenttagarr[2] > latesttagarr[2]) {
foundnewer := false
} else if (currenttagarr[3] > latesttagarr[3]) {
foundnewer := false
}


if (foundnewer) {
WriteLog("Found newer version to download")
promptmsg1 := localizedStrings["errormsg25"]
Expand Down
2 changes: 1 addition & 1 deletion src/settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
; If you configure anything that deviates from the default value it will appear here
; Pressing Ctrl+O in the game will bring up a settings UI

[Settings]
[Settings]

0 comments on commit fc89bab

Please sign in to comment.