game: Save the GID before the "auth success" log.
This commit is contained in:
parent
b85c189279
commit
0e05b01ce5
@ -115,11 +115,11 @@ process_handle(16#020d, << GID:32/little-unsigned-integer, Auth:32/bits, _/bits
|
|||||||
User ->
|
User ->
|
||||||
case User#users.auth of
|
case User#users.auth of
|
||||||
Auth ->
|
Auth ->
|
||||||
|
put(gid, GID),
|
||||||
log("auth success"),
|
log("auth success"),
|
||||||
LID = 1 + egs_db:next(lobby) rem 1023,
|
LID = 1 + egs_db:next(lobby) rem 1023,
|
||||||
Time = calendar:datetime_to_gregorian_seconds(calendar:universal_time()),
|
Time = calendar:datetime_to_gregorian_seconds(calendar:universal_time()),
|
||||||
egs_db:users_insert(#users{gid=GID, pid=self(), socket=CSocket, auth=success, time=Time, folder=User#users.folder, lid=LID}),
|
egs_db:users_insert(#users{gid=GID, pid=self(), socket=CSocket, auth=success, time=Time, folder=User#users.folder, lid=LID}),
|
||||||
put(gid, GID),
|
|
||||||
send_0d05(),
|
send_0d05(),
|
||||||
?MODULE:char_select();
|
?MODULE:char_select();
|
||||||
_ ->
|
_ ->
|
||||||
|
Loading…
Reference in New Issue
Block a user