Files
Bubberstation/code/modules/asset_cache/assets
MichiRecRoom 0d3c813c67 [NO GBP] Fix-up a line I missed during refactoring in my icon_exists optimization PR (#89374)
## About The Pull Request
While porting https://github.com/tgstation/tgstation/pull/89357 over to
monkestation, I found that I missed refactoring a couple lines in
`code\modules\asset_cache\assets\vending.dm`. This PR fixes that.

The changed code is all behind `if
(PERFORM_ALL_TESTS(focus_only/invalid_vending_machine_icon_states))`.
This means the changed code will only be executed if unit tests are
enabled *and* `invalid_vending_machine_icon_states` is a test that will
be run.

Despite that, I feel this code may be marginally faster, as the use of
`icon_states()` is now behind `!icon_exists()`.

## Why It's Good For The Game
Gotta go ever so slightly faster.
2025-02-08 15:19:53 -08:00
..