test
This commit is contained in:
parent
8b3f670b5a
commit
314570a11e
2
main.go
2
main.go
@ -200,6 +200,8 @@ func main() {
|
|||||||
logInfoDebug("AdminPacketServerClientQuit :\n- ClientID: %d", sp.ClientID)
|
logInfoDebug("AdminPacketServerClientQuit :\n- ClientID: %d", sp.ClientID)
|
||||||
if len(clients) == 2 && !paused {
|
if len(clients) == 2 && !paused {
|
||||||
sendChat(-436055948, fmt.Sprintf("%s leaving. Game paused.", clients[sp.ClientID].Name))
|
sendChat(-436055948, fmt.Sprintf("%s leaving. Game paused.", clients[sp.ClientID].Name))
|
||||||
|
} else {
|
||||||
|
sendChat(-436055948, fmt.Sprintf("%s leaving.", clients[sp.ClientID].Name))
|
||||||
}
|
}
|
||||||
delete(clients, sp.ClientID)
|
delete(clients, sp.ClientID)
|
||||||
case AdminPacketServerChat:
|
case AdminPacketServerChat:
|
||||||
|
Loading…
Reference in New Issue
Block a user