SRL Archive - Reflection Discussion

R_LoggedIn?


Floor66

2011-03-19 15:27:38

R_LoggedIn is this:

{*******************************************************************************
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;

mormonman

2011-03-19 16:12:17

Description is old.

Floor66

2011-03-19 16:12:35

Oh okay, this can be ignored then ^^

Gu3st...

2011-03-20 14:23:51

Hold on…
By: Method / Drags111 / Zyt3x

What did I do? :redface:

Floor66

2011-03-20 15:25:29

Haha epic bad memory is epic 8D

Yago

2011-03-20 19:51:29

Your presence inspired them lol