From 0e05b01ce5d6de4054435aa83c345c8fc8d9ce03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 30 Jun 2010 12:11:50 +0200 Subject: [PATCH] game: Save the GID before the "auth success" log. --- src/egs_game.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/egs_game.erl b/src/egs_game.erl index 7c7917a..37bdcbd 100644 --- a/src/egs_game.erl +++ b/src/egs_game.erl @@ -115,11 +115,11 @@ process_handle(16#020d, << GID:32/little-unsigned-integer, Auth:32/bits, _/bits User -> case User#users.auth of Auth -> + put(gid, GID), log("auth success"), LID = 1 + egs_db:next(lobby) rem 1023, 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}), - put(gid, GID), send_0d05(), ?MODULE:char_select(); _ ->