OpenXcom Forum

OpenXcom Forks => OXCE Bugs => OpenXcom Extended (OXCE) => OXCE Bugs from OXC => Topic started by: Zesty on November 02, 2023, 06:51:06 pm

Title: Path preview TUs left inaccurate when sprinting+opening doors. (OXC and OXCE)
Post by: Zesty on November 02, 2023, 06:51:06 pm
Sprinting (holding ctrl for movement) and pathing through doors gives an inaccurate (over) estimate of the TUs that will be left when the movement is more than 1 step. Can be seen very easily in OG TFTD on the starting triton. Seems to apply only to the automatic doors that close at the end of the turn rather than doors that stay open. Remaining Energy is also off.

(https://i.imgur.com/1s7dc8Y.png)
(https://i.imgur.com/JorBYBk.png)
Title: Re: Path preview TUs left inaccurate when sprinting+opening doors. (OXC and OXCE)
Post by: Meridian on December 02, 2023, 09:29:10 pm
This should be reported to the OXC team, as it happen also in OXC.


However, the code in both OXC and OXCE around the pathfinding and path preview is so complicated and full of exceptions and workarounds... that any attempt in fixing this will probably result in introducing 3 new bugs.
(I don't feel like touching that part of the code ever again in my life.)

Still, if someone feels like investigating, and finds out there is an easy fix for this... do let me know.