objects v3

This commit is contained in:
wish
2022-08-02 04:37:19 +10:00
parent a020ad88d0
commit ab51588e9e
8 changed files with 92 additions and 94 deletions

View File

@@ -279,7 +279,7 @@ func (s *Server) manageSessions() {
func (s *Server) BroadcastMHF(pkt mhfpacket.MHFPacket, ignoredSession *Session) {
// Broadcast the data.
for _, session := range s.sessions {
if session == ignoredSession || !session.binariesDone {
if session == ignoredSession {
continue
}
@@ -298,7 +298,7 @@ func (s *Server) BroadcastMHF(pkt mhfpacket.MHFPacket, ignoredSession *Session)
func (s *Server) WorldcastMHF(pkt mhfpacket.MHFPacket, ignoredSession *Session) {
for _, c := range s.Channels {
for _, session := range c.sessions {
if session == ignoredSession || !session.binariesDone {
if session == ignoredSession {
continue
}
bf := byteframe.NewByteFrame()