add stats/eco updates requests
This commit is contained in:
parent
acf58c99ef
commit
1084a32b1e
16
ttd.go
16
ttd.go
@ -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,
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user