Giter VIP home page Giter VIP logo

Comments (3)

newfrenchy83 avatar newfrenchy83 commented on June 26, 2024

adding the insertions doesn't change anything, infinite recursion still happens.

from wesnoth.

stevecotton avatar stevecotton commented on June 26, 2024

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.

gfgtdf avatar gfgtdf commented on June 26, 2024

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:

  1. have an abilities_context class with members, first_unit, first_unit_loc, first_unit_weapon, second_unit, second_unit_loc, second_unit_weapon
  2. move most of the function that are currently in abilties.cpp there
  3. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.