game: Consolidate broadcasting according to what is known so far.

This commit is contained in:
Loïc Hoguin 2010-05-26 11:02:18 +02:00
parent 4466c77ec5
commit 5fc0bf0741

View File

@ -309,8 +309,8 @@ loop(CSocket, GID, Version) ->
loop(CSocket, GID, Version, SoFar) -> loop(CSocket, GID, Version, SoFar) ->
receive receive
{psu_broadcast, Packet} -> {psu_broadcast, Packet} ->
<< A:192/bits, _:64, B/bits >> = Packet, << A:16/bits, _:8, B:40/bits, _:32, C:96/bits, _:64, D/bits >> = Packet,
Broadcast = << A/binary, 16#00011300:32, GID:32/little-unsigned-integer, B/binary >>, Broadcast = << A/binary, 3, B/binary, 16#00011300:32, C/binary, 16#00011300:32, GID:32/little-unsigned-integer, D/binary >>,
egs_proto:packet_send(CSocket, Broadcast), egs_proto:packet_send(CSocket, Broadcast),
?MODULE:loop(CSocket, GID, Version, SoFar); ?MODULE:loop(CSocket, GID, Version, SoFar);
{psu_chat, ChatGID, ChatName, ChatModifiers, ChatMessage} -> {psu_chat, ChatGID, ChatName, ChatModifiers, ChatMessage} ->