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

refactoring: replace the dead_units list #1066

Closed
wants to merge 2 commits into from
Closed

Conversation

ennorehling
Copy link
Member

  • use a smaller hashmap (stb_ds) instead
  • fix any tests that used units after they're empty

use a smaller hashmap (stb_ds) instead
fix any tests that used units after they're  empty
@ennorehling
Copy link
Member Author

ennorehling commented May 4, 2024

Wenn ich ein eTestauswertung mit 1352 mache, stelle ich fest, das geht nicht.

Geht nicht, weil in remove_unit noch "destroy" events ausgeführt werden, und z.B. shock_handle eine Einheit in seinem Attribut hat, die bereits gelöscht wurde. Leere Einheiten sofort zu löschen ist also nicht so problemlos :-(

@ennorehling ennorehling marked this pull request as draft May 4, 2024 11:54
@ennorehling ennorehling self-assigned this May 4, 2024
@ennorehling
Copy link
Member Author

Das geht so nicht. Die Idee mit dem hashtable ist nicht verkehrt, aber die Einheiten dürfen nicht gelöscht werden (brauchen wir noch, um Messages zu generieren, usw).

@ennorehling ennorehling closed this May 4, 2024
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.

1 participant