Floor66
2011-03-19 15:27:38
R_LoggedIn is this:
But LoginIndex states..
Why not just make R_LoggedIn to:
{*******************************************************************************
function R_LoggedIn: Boolean;
By: Method / Drags111 / Zyt3x
Description: Returns true if you're logged in.
*******************************************************************************}
function R_LoggedIn: Boolean;
begin
Result := (LoginIndex = 10) or (LoginIndex = 11);
end;
But LoginIndex states..
{*******************************************************************
Function LoginIndex: Integer;
By:
Description: Uses the LoginIndex hook.
2 = Logged Out, 4 = Logging Into Lobby, 6 = Lobbby,
8 = logging into game, 9 = Logged In. Reaches 10 at
some points, but with no significance.
********************************************************************}
Why not just make R_LoggedIn to:
function R_LoggedIn: Boolean;
begin
Result := LoginIndex = 9;
//or maybe even this because >10 has no significance but just to be sure?
Result := LoginIndex >= 9;
end;