Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send updated research after it is fully updated #2408

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

lmoureaux
Copy link
Contributor

Upon getting a free tech, the server was sending the updated research before it was done updating the struct. The client received contradicting information (in #2405, that the tech was both fully researched and still the current tech goal).

Closes #2405.

Testing

I tested the following cases:

  • Tech from hut with no target set
  • Tech from hut with a goal set (the next tech towards the target gets selected and researched immediately if there are enough bulbs)
  • Researching techs with and without a target
  • Getting a tech from allies

* Remove a special case when there are no bulbs left to research (this
  shouldn't happen but did in longturn#2405)
* Simplify setting an empty string for observers
Upon getting a free tech, the server was sending the updated research
before it was done updating the struct. The client received
contradicting information (in longturn#2405, that the tech was both fully
researched and still the current tech goal).

Closes longturn#2405.
Copy link
Collaborator

@jwrober jwrober left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me

@jwrober jwrober merged commit 5f8ebf0 into longturn:master Oct 23, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Science dialog not refreshed when getting a tech from a hut
2 participants