Skip to content

Dispatch loop in fields.js might be broken #73

@SGSSGene

Description

@SGSSGene

Lets look at the dispatch queue:

  1. initial state - queue [draw_all()]
  2. some reset comes in - queue [draw_all(), resetGameState()]
  3. now the draw_all() is being executed which queues a new "RobotAction.setPosition" queue [resetGameState(), setPosition()]
  4. execute the resetGameState()
  5. Error!!! setPosition might reset robot position back, reset is kind of ignored

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions