prevent flipping between scan and repair for infinite awesomeness
This commit is contained in:
parent
c9f0fb08bb
commit
ae9d09596c
@ -50,6 +50,7 @@ func (p *player) recv() {
|
|||||||
// log.Printf("%v", msg.FireAt)
|
// log.Printf("%v", msg.FireAt)
|
||||||
|
|
||||||
if msg.Repair != nil && *msg.Repair == true {
|
if msg.Repair != nil && *msg.Repair == true {
|
||||||
|
r.ActiveScan = false
|
||||||
r.TargetSpeed = 0
|
r.TargetSpeed = 0
|
||||||
r.FireAt = nil
|
r.FireAt = nil
|
||||||
r.MoveTo = nil
|
r.MoveTo = nil
|
||||||
@ -57,6 +58,7 @@ func (p *player) recv() {
|
|||||||
r.RepairCounter = 3.0
|
r.RepairCounter = 3.0
|
||||||
}
|
}
|
||||||
} else if msg.Scan != nil && *msg.Scan == true {
|
} else if msg.Scan != nil && *msg.Scan == true {
|
||||||
|
r.RepairCounter = 0
|
||||||
r.TargetSpeed = 0
|
r.TargetSpeed = 0
|
||||||
r.FireAt = nil
|
r.FireAt = nil
|
||||||
r.MoveTo = nil
|
r.MoveTo = nil
|
||||||
|
Loading…
Reference in New Issue
Block a user