Fix HOP ticket display showing wrong number when tickets are destroyed (#96939)

## About The Pull Request

When HOP tickets are destroyed, the displayed number no longer gets out
of sync with the current ticket number being called (the actual
selecting the next ticket already worked fine, only the display got out
of sync)

## Why It's Good For The Game

The number not actually being the number is a bug

## Changelog
🆑 PapaMichael
fix: The HOP ticket machine display now shows the correct number when
tickets are destroyed
/🆑
This commit is contained in:
PapaMichael
2026-07-13 16:47:43 -06:00
committed by GitHub
parent 992b926ef5
commit 65cfc09be6
+1 -1
View File
@@ -88,7 +88,7 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/ticket_machine, 32)
QDEL_NULL(current_ticket)
if(LAZYLEN(tickets))
current_ticket = tickets[1]
current_number++ //Increment the one we're serving.
current_number = current_ticket.number //Destroyed tickets are removed from the queue, so the next ticket's number may have skipped ahead.
playsound(src, 'sound/announcer/announcement/announce_dig.ogg', 50, FALSE)
say("Now serving [current_ticket]!")
if(!(obj_flags & EMAGGED))