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

Ashtray sprite seems to be glitchy in terms of how it is coded #2617

Open
SimpleGopnik opened this issue Jan 4, 2025 · 4 comments
Open

Ashtray sprite seems to be glitchy in terms of how it is coded #2617

SimpleGopnik opened this issue Jan 4, 2025 · 4 comments
Labels
Priority: 3-Medium Needs to be resolved at some point Upstream Issue Would probably be solved with an Upstream PR, doesn't mean you can't fix it here.

Comments

@SimpleGopnik
Copy link

SimpleGopnik commented Jan 4, 2025

Description

The ashtray item can be used to store cigarettes. However, it's implementation does not seem to be correct in terms of how it changes between sprites. First and foremost, the first burnt cigarette is not shown when inserted, and consecutive cigarettes are shown with one subtracted (probably an off by one error somewhere in the code).

Furthermore, when the ashtray is emptied of all cigarettes it will show that one cigarette is still in it, despite the fact that it is empty.

Reproduction
Fill an ashtray with a number of cigarettes less than five and the sprite will show one less

In order to get the second glitch one simply needs to add a single cigarette into the ashtray and empty it, at which point the ashtray will show a single cigarette.

Screenshots
Empty ashtray that had cigarettes inside it
image
Ashtray with one cigarette inside
image
Ashtray with three cigarettes inside
image
Further evidence that there were three cigarettes inside the ashtray(As well as the empty ashtray bug)
image

@github-actions github-actions bot added the S: Untriaged This issue or PR needs labelling label Jan 4, 2025
@beck-thompson
Copy link
Contributor

Pretty sure I fixed this upstream but its waiting to be merged space-wizards/space-station-14#32386

@beck-thompson
Copy link
Contributor

oh also good bug report it was very nicely written with screenshots 👍

@deltanedas
Copy link
Member

3 month old bugfix my beloved

@deltanedas deltanedas added Priority: 3-Medium Needs to be resolved at some point Upstream Issue Would probably be solved with an Upstream PR, doesn't mean you can't fix it here. and removed S: Untriaged This issue or PR needs labelling labels Jan 5, 2025
@SimpleGopnik
Copy link
Author

Ah splendid, sorry for my delay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: 3-Medium Needs to be resolved at some point Upstream Issue Would probably be solved with an Upstream PR, doesn't mean you can't fix it here.
Projects
None yet
Development

No branches or pull requests

3 participants