From 2a84dd529a23ff76b2f9ca54562ddc8ec3c5820d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 25 May 2010 22:10:14 +0200 Subject: [PATCH] game: The lobby ID apparently can't be 1024 and above. --- 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 e8961e6..d77f08f 100644 --- a/src/egs_game.erl +++ b/src/egs_game.erl @@ -84,7 +84,7 @@ process_handle(16#020d, CSocket, Version, Packet) -> case User#users.auth of Auth -> log(GID, "good auth, proceed"), - LID = egs_db:next(lobby), + LID = egs_db:next(lobby) rem 1024, 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_proto:send_flags(CSocket, GID),