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

Шортики СБ #2774

Closed
wants to merge 2 commits into from
Closed

Шортики СБ #2774

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Apr 7, 2024

О Pull Request

Хвостам жарко в штанах. Нужны шортики!

Как это может улучшит/повлиять на игровой процесс/ролевую игру

Придаст атмосферы.

Доказательства тестирования

Скриншоты/Видео

изображение

Changelog

🆑
add: Sec shorts for hot officers
/:cl:

@ghost ghost closed this Apr 8, 2024
Iajret pushed a commit that referenced this pull request Jun 1, 2024
* Fixes runtime with serializing photo metadata (#83562)

## About The Pull Request

So while working on an entirely unrelated thing, I noticed runtimes
appearing in my logs after taking a picture.
Specifically a bad index runtime for the 77th line here:

https://github.com/tgstation/tgstation/blob/2f6920105e097479ae1f2fdf2823e2e8fdc59f3b/code/modules/photography/_pictures.dm#L66-L78
And the 199th line here:

https://github.com/tgstation/tgstation/blob/2f6920105e097479ae1f2fdf2823e2e8fdc59f3b/code/datums/datum.dm#L193-L200
This seemed to be caused by the fact `serialize_list(...)` is called
with a null `semvers` parameter, which then causes it to try to add to a
null list.

I asked about this in code general on the main discord, and got told
just putting an empty list in when `serialize_list(...)` is called
should be fine.
This resolves the runtime.
## Why It's Good For The Game

Better to not have two runtimes added to the logs whenever someone takes
a picture.
Fixes #80514.

* Fixes runtime with serializing photo metadata

---------

Co-authored-by: _0Steven <[email protected]>
Co-authored-by: NovaBot13 <[email protected]>
AnywayFarus pushed a commit that referenced this pull request Jun 2, 2024
* Fixes runtime with serializing photo metadata (#83562)

## About The Pull Request

So while working on an entirely unrelated thing, I noticed runtimes
appearing in my logs after taking a picture.
Specifically a bad index runtime for the 77th line here:

https://github.com/tgstation/tgstation/blob/2f6920105e097479ae1f2fdf2823e2e8fdc59f3b/code/modules/photography/_pictures.dm#L66-L78
And the 199th line here:

https://github.com/tgstation/tgstation/blob/2f6920105e097479ae1f2fdf2823e2e8fdc59f3b/code/datums/datum.dm#L193-L200
This seemed to be caused by the fact `serialize_list(...)` is called
with a null `semvers` parameter, which then causes it to try to add to a
null list.

I asked about this in code general on the main discord, and got told
just putting an empty list in when `serialize_list(...)` is called
should be fine.
This resolves the runtime.
## Why It's Good For The Game

Better to not have two runtimes added to the logs whenever someone takes
a picture.
Fixes #80514.

* Fixes runtime with serializing photo metadata

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: _0Steven <[email protected]>
Co-authored-by: NovaBot13 <[email protected]>
This pull request was closed.
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