MegaGlest Forum

Archives (read only) => Glest Advanced Engine => Bug reports => Topic started by: Omega on 25 April 2011, 00:01:49

Title: BUG - Enemy workers repaired YOUR buildings
Post by: Omega on 25 April 2011, 00:01:49
Really late bug report for 0.3.2 (sorry I haven't tested in 0.4 beta yet):

Magic versus tech, I had a game on a map meant for 2v2 by accident, causing an opponent to be right next to me, which resulted in immediate anarchy. After destroying their castle, which the workers were auto-repairing, the workers came over an repaired my damaged mage tower. Not only are they repairing someone on the wrong team, but the mage tower is the wrong faction and not on the list of units they can repair.

Sorry if this has already been fixed by now.
Title: Re: BUG - Enemy workers repaired YOUR buildings
Post by: hailstone on 28 April 2011, 08:12:06
I committed a fix now (d7ff2a5e..). I only tested human repairing AI unit but it should apply the other way too. Not being in the repair list might still be an issue.
Title: Re: BUG - Enemy workers repaired YOUR buildings
Post by: Zoythrus on 28 April 2011, 15:09:58
although, it would be nice if you could have your men repair an ally's buildings if they are damaged. (seems like a 'duh!' kinda thing) but the whole building repair limitation is a problem....