Skip to content

Commit

Permalink
Fixed get elapsed time.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryancrunchi committed Jan 10, 2019
1 parent 32e4df4 commit c7f4d05
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions d2bs/kolbot/libs/OOG.js
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,12 @@ MainLoop:
}
if (gameInfoControl) {
var text = gameInfoControl.getText();
var i = 0;
while(!text && i < 30) {
delay(100);
text = gameInfoControl.getText();
i++;
}
if (text) {
for (var i = 0; i < text.length; i++) {
var timeRegExp = /\d+:\d{2}:\d{2}/i;
Expand Down

0 comments on commit c7f4d05

Please sign in to comment.