update delete
This commit is contained in:
4
ttd.go
4
ttd.go
@@ -624,11 +624,11 @@ func (s *ServerTTD) ComputeClientTime() {
|
||||
}
|
||||
|
||||
func (s *ServerTTD) DeleteCompany(id uint8) {
|
||||
if _, ok := s.Status.Companies[id]; ok {
|
||||
if co, ok := s.Status.Companies[id]; ok {
|
||||
logInfoDebug("Server.DeleteCompany : deleting #%d", id)
|
||||
px := PacketAdminRCon{
|
||||
Packet: Packet{PType: AdminPacketAdminRCon},
|
||||
Command: fmt.Sprintf("reset_company %d", id),
|
||||
Command: fmt.Sprintf("reset_company %d", co.CompanyExtlID),
|
||||
}
|
||||
s.Send(px.Bytes())
|
||||
px = PacketAdminRCon{
|
||||
|
||||
Reference in New Issue
Block a user