game: The lobby ID apparently can't be 1024 and above.
This commit is contained in:
parent
757523ca03
commit
2a84dd529a
@ -84,7 +84,7 @@ process_handle(16#020d, CSocket, Version, Packet) ->
|
|||||||
case User#users.auth of
|
case User#users.auth of
|
||||||
Auth ->
|
Auth ->
|
||||||
log(GID, "good auth, proceed"),
|
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()),
|
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}),
|
||||||
egs_proto:send_flags(CSocket, GID),
|
egs_proto:send_flags(CSocket, GID),
|
||||||
|
Loading…
Reference in New Issue
Block a user