Author Topic: BUG?: v0.3-0.3.1 Transport units attack command  (Read 879 times)

ChupaReaper

  • Guest
BUG?: v0.3-0.3.1 Transport units attack command
« on: 18 October 2010, 18:27:45 »
I have two units that can fire a projectile attack and can load and unload, when I right click an enemy it says "Can't load units of that type." Same for when I choose the attack command and tell it to attack. I have to walk it up near the enemy so that it attacks automatically.

Zoythrus

  • Guest
Re: BUG?: v0.3-0.3.1 Transport units attack command
« Reply #1 on: 18 October 2010, 18:45:16 »
strange, because it worked fine for me! show me your code...maybe i can help you.

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: BUG?: v0.3-0.3.1 Transport units attack command
« Reply #2 on: 19 October 2010, 00:40:47 »
Hmm, I haven't tested in 0.3.1, but I recall something like this in 0.3.

The transport units are new, so there's bound to be a few bugs still...
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: BUG?: v0.3-0.3.1 Transport units attack command
« Reply #3 on: 19 October 2010, 03:36:46 »
Thanks, looks like some "double checking" is going on, Unit::computeCommandType() is giving the correct results, but then some code in back in Commander::tryGiveCommand() is ignoring this result if the selected unit is a carrier.

Ticket #235.

Glest Advanced Engine - Code Monkey

Timeline | Downloads

 

anything