project-navigation
Personal tools

Author Topic: Bug: autostand move  (Read 3446 times)

Offline CheeseshireCat

  • Rookie
  • ***
  • Posts: 82
    • View Profile
Bug: autostand move
« on: January 07, 2011, 01:57:47 pm »
Autostand routinely miscalculates the move required, resulting in the soldier not able to crouch down again. I'll try to figure out what's wrong, I suspect it "thinks" it needs less TUs for some actions (ortho move, diagonal move or stand/crouch) than it really does, but not sure yet.

Offline dodon

  • Rookie
  • ***
  • Posts: 48
    • View Profile
Re: Bug: autostand move
« Reply #1 on: January 08, 2011, 10:07:43 pm »
I made a Bugfix for autostand-feature - ID: 3025283, but I don't know if it was applied to the 2.3 branch.

Please check if a soldier always stands up or moves crouched for crouched movement that costs between 12 and 18 TUs.

Offline CheeseshireCat

  • Rookie
  • ***
  • Posts: 82
    • View Profile
Re: Bug: autostand move
« Reply #2 on: January 09, 2011, 12:04:09 am »
The miscalculation only happens when the move is autostand, and soldiers stand up. They just often don't have TUs to crouch back.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Bug: autostand move
« Reply #3 on: January 09, 2011, 08:00:09 am »
this is now also merged back into the 2.3 branch

Offline CheeseshireCat

  • Rookie
  • ***
  • Posts: 82
    • View Profile
Re: Bug: autostand move
« Reply #4 on: January 16, 2011, 12:21:22 am »
OK, I did some testing and fully determined what's the problem.

Autostand just doesn't calculate at all. If a soldier is crouching, the calculation is *ALWAYS* performed for crouch move, even if the distance triggers autostand move.