OpenXcom Forum

OpenXcom Forks => OXCE Bugs => OpenXcom Extended (OXCE) => OXCE Bugs FIXED => Topic started by: Meridian on June 11, 2023, 03:33:24 pm

Title: [FIXED][bug] units phasing through doors in oxce 7.8.21+
Post by: Meridian on June 11, 2023, 03:33:24 pm
when a unit has low TU, e.g. 5 TU, it walks through a door without opening it

expected: cannot make a move (not enough TU)

@yankes: introduced in this commit: https://github.com/MeridianOXC/OpenXcom/commit/cefeaf6b65a28cfc4001bf018f74315da36464d6
please check

save attached
Title: Re: [bug] units phasing through doors in oxce 7.8.21+
Post by: Yankes on June 11, 2023, 04:44:00 pm
Ok, I recheck this commit and I suspect:
Code: [Select]
if ((direction == 0 || direction == 7 || direction == 1) && startTile[i]->hasLadderOnNorthWall())
I mess up condition as it should be false for case where is not climb wall but its true.
Title: Re: [bug] units phasing through doors in oxce 7.8.21+
Post by: Yankes on June 13, 2023, 02:44:49 am
Should be fixed in OXCE 7.9.7
Title: Re: [bug] units phasing through doors in oxce 7.8.21+
Post by: Vakrug on June 13, 2023, 10:13:34 am
Oh...  :'( This bug was so hilarious...  ;D