Droids would previously not see new tiles until moving after an upgrade. Structures would previously not see new tiles until being partially demolished/rebuilt after an upgrade. Fixes ticket:3450.
Droids no longer start to retreat and then stop in the middle of the battlefield doing nothing, while getting shot at.
Repairing structures with 0 hp will no longer risk suddenly destroying the structure, although this probably makes no difference, as structures do not ever have 0 hp. The .actionStarted and .actionPoints fields are no longer used when droids repair stuff.
Turrets would use the exact muzzle position when firing, but use the base position when getting ready to fire. This would result in a HMG tower pointing in the wrong direction half the time, bouncing up and down, if the target was close. The turret would correctly point down when firing, and revert to pointing horizontally between shots. Not using the exact muzzle position for direction, only for pitch, in case other code checks the direction too, and depends on the result being the same. Fixes ticket:2789.
…e been researched. Fixes ticket:3327.