Closed ihhub closed 4 weeks ago
Failed conditions
1 New Critical Issues (required ≤ 0)
See analysis details on SonarCloud
Catch issues before they fail your Quality Gate with our IDE extension SonarLint
Hi @Districh-ru , thanks for spotting this issue! I will fix it in a separate PR.
Hi @Districh-ru , did you refer to maps made in the original editor? I am not able to reproduce it within our Editor.
Hi, @ihhub, I used the original Editor. And, I tested, this but is not reproducible in our Editor.
The next map is made in original editor and causes assertion fail: 221.zip
Added:
MP2::getActionObjectDirection(
OBJ_EXPANSION_OBJECT)
is called when removing MP2::OBJ_ICN_TYPE_MINIHERO
from the map. It is called from updatePassability()
after removing the editor's hero object before placing a new real hero there.
Hi @Districh-ru , I don't receive any assertions for this situation.
Hi, @ihhub, you are right! Now in master branch all works OK. One of the last PRs fixes this issue. 👍
The previous implementation was based on hardcoded values and differs from our set of object part information. Having a single source of truth is easier to handle the code.
As a bonus point this PR speeds up whirlpool initialization at map or save file loading.