add stats/eco updates requests

This commit is contained in:
shoopea 2021-12-04 16:11:34 +08:00
parent acf58c99ef
commit 1084a32b1e
2 changed files with 20 additions and 4 deletions

16
ttd.go
View File

@ -794,6 +794,22 @@ func (s *ServerTTD) Initialize() {
err = s.Send(px.Bytes())
logErrorDebug(err, "Server.Initialize() : Send(AdminUpdateCompanyInfo)")
px = PacketAdminUpdateFrequency{
Packet: Packet{PType: AdminPacketAdminUpdateFrequency},
UpdateType: AdminUpdateCompanyEconomy,
UpdateFrequency: AdminFrequencyAutomatic,
}
err = s.Send(px.Bytes())
logErrorDebug(err, "Server.Initialize() : Send(AdminUpdateCompanyEconomy)")
px = PacketAdminUpdateFrequency{
Packet: Packet{PType: AdminPacketAdminUpdateFrequency},
UpdateType: AdminUpdateCompanyStats,
UpdateFrequency: AdminFrequencyAutomatic,
}
err = s.Send(px.Bytes())
logErrorDebug(err, "Server.Initialize() : Send(AdminUpdateCompanyStats)")
px = PacketAdminUpdateFrequency{
Packet: Packet{PType: AdminPacketAdminUpdateFrequency},
UpdateType: AdminUpdateChat,

View File

@ -1,6 +1,6 @@
// Code generated by version.sh (@generated) DO NOT EDIT.
package main
var githash = "84579af"
var buildstamp = "2021-12-04_05:35:59"
var commits = "213"
var version = "84579af-b213 - 2021-12-04_05:35:59"
var githash = "acf58c9"
var buildstamp = "2021-12-04_08:11:12"
var commits = "214"
var version = "acf58c9-b214 - 2021-12-04_08:11:12"