remove some debug

This commit is contained in:
shoopea 2021-12-05 17:15:48 +08:00
parent d5bed1eecf
commit 40c4261328
2 changed files with 4 additions and 10 deletions

6
ttd.go
View File

@ -385,10 +385,7 @@ func (s *ServerTTD) Poll(stop chan struct{}) {
logInfoDebug("Server.Poll() : PacketServerCompanyEconomy :\n- CompanyID: %d\n- M: %d\tL: %d\tI: %d\n- Delivered now: %d\tLast: %d\tPrevious: %d\n- Performance last: %d\t Previous: %d\n- Value last: %d\t Previous: %d", sp.CompanyID, sp.Money, sp.Loan, sp.Income, sp.DeliveredCargoThisQuarter, sp.DeliveredCargoLastQuarter, sp.DeliveredCargoPreviousQuarter, sp.PerformanceLastQuarter, sp.PerformancePreviousQuarter, sp.CompanyValueLastQuarter, sp.CompanyValuePreviousQuarter)
if cfg.Stats == nil {
logInfoDebug("Server.Poll() : PacketServerCompanyEconomy : Stats : uninitialized")
cfg.Stats = make(map[uint8]map[string]*Stat)
} else {
logInfoDebug("Server.Poll() : PacketServerCompanyEconomy : Stats : initialized")
}
_, ok := cfg.Stats[sp.CompanyID]
@ -422,10 +419,7 @@ func (s *ServerTTD) Poll(stop chan struct{}) {
logInfoDebug("Server.Poll() : PacketServerCompanyStats :\n- CompanyID: %d\n- Vehicles T: %d\tL: %d\tB: %d\tP: %d\tS: %d\n- Stations T: %d\tL: %d\tB: %d\tP: %d\tS: %d", sp.CompanyID, sp.Trains, sp.Lorries, sp.Busses, sp.Planes, sp.Ships, sp.TrainStations, sp.LorryStations, sp.BusStops, sp.Airports, sp.Harbours)
if cfg.Stats == nil {
logInfoDebug("Server.Poll() : PacketServerCompanyStats : Stats : uninitialized")
cfg.Stats = make(map[uint8]map[string]*Stat)
} else {
logInfoDebug("Server.Poll() : PacketServerCompanyStats : Stats : initialized")
}
_, ok := cfg.Stats[sp.CompanyID]

View File

@ -1,6 +1,6 @@
// Code generated by version.sh (@generated) DO NOT EDIT.
package main
var githash = "0fd8999"
var buildstamp = "2021-12-05_09:07:57"
var commits = "227"
var version = "0fd8999-b227 - 2021-12-05_09:07:57"
var githash = "d5bed1e"
var buildstamp = "2021-12-05_09:15:32"
var commits = "228"
var version = "d5bed1e-b228 - 2021-12-05_09:15:32"