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

[TG Mirror] Fixes magic mirrors not being able to change your race (?) #153

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Skyrat: Skyrat-SS13/Skyrat-tg#24425
Original PR: tgstation/tgstation#79075

About The Pull Request

Not sure why this exactly was happening but I just changed around some vars and it fixed

image

Also it was assigning a qdeling datum to a mob. Bad bad bad

Changelog

🆑 Melbert
fix: Magic Mirrors can change your race again (?)
/:cl:

…MDB IGNORE] (#24425)

Fixes magic mirrors not being able to change your race (?)

Co-authored-by: MrMelbert <[email protected]>
@Iajret Iajret merged commit 56e7fe6 into master Oct 19, 2023
23 checks passed
@Iajret Iajret deleted the upstream-mirror-24425 branch October 19, 2023 21:32
Steals-The-PRs added a commit that referenced this pull request Oct 19, 2023
Iajret pushed a commit that referenced this pull request Jan 3, 2024
* Micro-optimize qdel by only permitting one parameter (#80628)

Productionizes #80615.

The core optimization is this:

```patch
-	var/hint = to_delete.Destroy(arglist(args.Copy(2))) // Let our friend know they're about to get fucked up.
+	var/hint = to_delete.Destroy(force) // Let our friend know they're about to get fucked up.
```

We avoid a heap allocation in the form of copying the args over to a new
list. A/B testing shows this results in 33% better overtime, and in a
real round shaving off a full second of self time and 0.4 seconds of
overtime--both of these would be doubled in the event this is merged as
the new proc was only being run 50% of the time.

* Micro-optimize qdel by only permitting one parameter

* Modular updates

* Find+replace fail

---------

Co-authored-by: Mothblocks <[email protected]>
Co-authored-by: NovaBot <[email protected]>
Co-authored-by: Giz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants