Comments (3)
adding the insertions doesn't change anything, infinite recursion still happens.
from wesnoth.
The plan for fixing the infinite recursion would be either
- track the depth of the filters (how many times they've recursed, without considering why), or
- track all the current-unresolved checks to see if the latest depth of recursion duplicates an already-open check
This issue is a step along the route to that, looking at where the bookkeeping data could go, and finding that there's an issue to address before looking at the recursion itself.
from wesnoth.
Imo it does make sense, to move these parts out of the attack_type class, and have a abilities_context class instead, i actually wanted to do something like that when i worked on #7589, but didnt find the time to do it.
But iirc my plan was to:
- have an abilities_context class with members, first_unit, first_unit_loc, first_unit_weapon, second_unit, second_unit_loc, second_unit_weapon
- move most of the function that are currently in abilties.cpp there
- Let it keep track of which abilities have already been checked for that case so that we don't unneccecarily evaulate things twice,
from wesnoth.
Related Issues (20)
- EI: In S12 Evacuation, When the AI Retreats, AI Units Will Still Attack Instead of Retreating if They Won't Take Retaliation Damage HOT 3
- [harm_unit] "alignment" key uses the harm-ee's ToD, not the harm-er
- Change the stats of the Naga Guardian and High Guardian to make the βabsorbβ ability usable
- Slow pathfinding for Silver Mage/Teleport on huge maps HOT 3
- Dialogs disappear instantly fairly frequently with 1.18 HOT 1
- Wesnoth (master) does not start HOT 19
- THoT S05: Enemy leader (Masked Dwarf) portrait is shown cut off by the vertical crop HOT 3
- config's automatic conversion of an attribute to bool gives unexpected behavior HOT 1
- Handling mathx.random(0) HOT 5
- Language selection window interaction between checkbox and --all-translations HOT 8
- Whirlpools are submerged in deep water HOT 2
- Plan Mode Enable/Disable Bug HOT 2
- [BUG] Planning Mode leaks opposing sides hidden unit positions to current side player HOT 7
- Make addon ID recognizable
- Amulet reusability HOT 11
- Improve or remove file saving on F5 in the editor HOT 16
- Make the "you can't move here" overlay look nicer HOT 4
- Mismatched copyright attributions for image files
- Improve hex color validation
- wesnoth.units.create_animator issues with direction
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wesnoth.