[Party] Disable XP bar when maxlevel

This commit is contained in:
momo5502 2017-03-01 19:56:36 +01:00
parent 3869272d4f
commit e8b881ea53
2 changed files with 3 additions and 2 deletions

View File

@ -130,7 +130,7 @@ namespace Components
DWORD Party::UIDvarIntStub(char* dvar) DWORD Party::UIDvarIntStub(char* dvar)
{ {
if (!_stricmp(dvar, "onlinegame")) if (!_stricmp(dvar, "onlinegame") && !Stats::IsMaxLevel())
{ {
return 0x649E660; return 0x649E660;
} }

View File

@ -12,8 +12,9 @@ namespace Components
const char* getName() override { return "Stats"; }; const char* getName() override { return "Stats"; };
#endif #endif
private:
static bool IsMaxLevel(); static bool IsMaxLevel();
private:
static void UpdateClasses(UIScript::Token token); static void UpdateClasses(UIScript::Token token);
static void SendStats(); static void SendStats();