🆙 small fix as it was only doing it for my test badge

This commit is contained in:
duckietm
2026-01-29 13:46:28 +01:00
parent 53c6ecfbc3
commit 866449efca
@@ -458,7 +458,7 @@ export class RoomSpriteCanvas implements IRoomRenderingCanvas
sortableSprite.z = ((z + sprite.relativeDepth) + (3.7E-11 * count)); sortableSprite.z = ((z + sprite.relativeDepth) + (3.7E-11 * count));
// Ensure badge renders on top of furniture // Ensure badge renders on top of furniture
const isBadgeSprite = sprite.name && sprite.name.length < 10 && /^[A-Z]{2}[0-9]/.test(sprite.name); const isBadgeSprite = (sprite.tag === 'BADGE');
if(isBadgeSprite) { if(isBadgeSprite) {
sortableSprite.z = -999; sortableSprite.z = -999;