Skip to content

Commit

Permalink
added me.unsupported. me.gamestarttime should now work for quickly jo…
Browse files Browse the repository at this point in the history
…ined games (sp).
  • Loading branch information
cyrre committed Nov 4, 2013
1 parent 2cd24b5 commit 1fee40f
Show file tree
Hide file tree
Showing 4 changed files with 9 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.1805" //uptodate with d branch 1765 ff 20b
#define D2BS_VERSION "1.5.1806" //uptodate with d branch 1765 ff 20b

#include <windows.h>
#include <vector>
Expand Down
3 changes: 2 additions & 1 deletion D2Handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ DWORD WINAPI D2Thread(LPVOID lpParam)
}
else
{
Vars.dwGameTime = GetTickCount();

Sleep(500);

Vars.dwGameTime = GetTickCount();
D2CLIENT_InitInventory();
ScriptEngine::ForEachScript(UpdatePlayerGid, NULL, 0);
ScriptEngine::UpdateConsole();
Expand Down
3 changes: 3 additions & 0 deletions JSUnit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ JSAPI_PROP(unit_getProperty)
case ME_BLOCKMOUSE:
vp.setBoolean(Vars.bBlockMouse);
break;
case ME_UNSUPPORTED:
vp.setBoolean(Vars.bEnableUnsupported);
break;
default:
break;
}
Expand Down
4 changes: 3 additions & 1 deletion JSUnit.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ enum me_tinyid {
ME_GAMEREADY,
ME_PROFILE,
ME_NOPICKUP,
ME_PID
ME_PID,
ME_UNSUPPORTED
};

static JSPropertySpec me_props[] = {
Expand Down Expand Up @@ -143,6 +144,7 @@ static JSPropertySpec me_props[] = {
{"profile", ME_PROFILE, JSPROP_PERMANENT_VAR, JSOP_WRAPPER(unit_getProperty), JSOP_NULLWRAPPER },
{"nopickup", ME_NOPICKUP, JSPROP_STATIC_VAR, JSOP_WRAPPER(unit_getProperty), JSOP_WRAPPER(unit_setProperty)},
{"pid", ME_PID, JSPROP_PERMANENT_VAR, JSOP_WRAPPER(unit_getProperty), JSOP_NULLWRAPPER },
{"unsupported", ME_UNSUPPORTED, JSPROP_PERMANENT_VAR, JSOP_WRAPPER(unit_getProperty), JSOP_NULLWRAPPER },

{"screensize", OOG_SCREENSIZE, JSPROP_PERMANENT_VAR, JSOP_WRAPPER(unit_getProperty), JSOP_NULLWRAPPER },
{"windowtitle", OOG_WINDOWTITLE, JSPROP_PERMANENT_VAR, JSOP_WRAPPER(unit_getProperty), JSOP_NULLWRAPPER },
Expand Down

0 comments on commit 1fee40f

Please sign in to comment.