UFO:Alien Invasion

Archive => Bugs prior to release 2.3 => Topic started by: Ildamos on January 16, 2010, 04:00:50 pm

Title: 27972 - reaction fire reservation doesn't work
Post by: Ildamos on January 16, 2010, 04:00:50 pm
I downloaded Muton's 27972 package (http://ufoai.ninex.info/forum/index.php?topic=2830.375 - reply #382) and the " reaction fire reservation doesn't work  " is back.

Title: Re: 27972 - reaction fire reservation doesn't work
Post by: Mattn on January 16, 2010, 04:05:29 pm
already fixed in current trunk
Title: Re: 27972 - reaction fire reservation doesn't work
Post by: Ildamos on January 16, 2010, 04:10:18 pm
Ah. I hope someone uploads the most recent build soon.  ;D

In the meantime, I'm going back to finger counting.  :D
Title: Re: 27972 - reaction fire reservation doesn't work
Post by: Halleth on January 20, 2010, 09:50:34 pm
R 28183. Only single reservation is fine. Multiple reservation doesn't work properly - it doesn't freeze more points.

I remember how TU reservation used to work, it had 3 possible states:
x = no reservation
| = single shot reservation
||| = reservation for maximum number of shots

Now it is:
x = no reservation
| = single shot reservation
||| = single shot reservation but if you have more points, soldier can shoot more times

I would like to propose new solution. Button would have only one function - toggling. When its clicked, check is performed if we have enough TUs to reserve one more shot (it is done anyway). If yes, just add one more shot, if not, toggle reservation to OFF:

if (enough TUs to reserve next shot):
 status = +1 shot reservation
else:
 status = no reservation