Skip to content

Commit

Permalink
tweak to avoid script pauses and deadlocks
Browse files Browse the repository at this point in the history
  • Loading branch information
bobode committed Oct 30, 2013
1 parent 45aaa20 commit 2cd24b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion D2BS.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#define XP_WIN

#define D2BS_VERSION "1.5.1804" //uptodate with d branch 1765 ff 20b
#define D2BS_VERSION "1.5.1805" //uptodate with d branch 1765 ff 20b

#include <windows.h>
#include <vector>
Expand Down
4 changes: 2 additions & 2 deletions D2Handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,8 @@ void CALLBACK TimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
else
Vars.bGameLoopEntered = true;

while(Vars.SectionCount)
Sleep(0);
if(Vars.SectionCount)
Sleep(5);

EnterCriticalSection(&Vars.cGameLoopSection);
}
Expand Down

0 comments on commit 2cd24b5

Please sign in to comment.