add ClientMode config option

This commit is contained in:
wish
2023-06-18 20:31:18 +10:00
parent 0b4108fb85
commit b4df642ee3
15 changed files with 169 additions and 78 deletions

View File

@@ -3,6 +3,7 @@ package channelserver
import (
"encoding/hex"
"erupe-ce/common/stringsupport"
_config "erupe-ce/config"
"time"
"erupe-ce/common/byteframe"
@@ -80,7 +81,10 @@ func handleMsgMhfGetUdSchedule(s *Session, p mhfpacket.MHFPacket) {
}
bf.WriteUint32(id)
for _, timestamp := range timestamps {
for i, timestamp := range timestamps {
if s.server.erupeConfig.ClientMode == _config.Z1 && i == 4 {
continue
}
bf.WriteUint32(timestamp)
}