update pause/unpause msg

This commit is contained in:
shoopea
2021-11-08 14:19:52 +08:00
parent 3194cb33db
commit 7db13a764c
3 changed files with 6 additions and 6 deletions

2
ttd.go
View File

@@ -589,6 +589,7 @@ func (s *ServerTTD) Pause() {
err := s.Send(px.Bytes())
s.ComputeClientTime()
bot.SendChat(cfg.Telegram.ChatID, "Game is paused.")
s.Status.Paused = true
logErrorDebug(err, "Server.Pause : Send()")
@@ -610,6 +611,7 @@ func (s *ServerTTD) Unpause() {
err := s.Send(px.Bytes())
s.ComputeClientTime()
bot.SendChat(cfg.Telegram.ChatID, "Game is unpaused.")
s.Status.Paused = false
logErrorDebug(err, "Server.Unpause : Send()")