From 20810aa0d3dfac49e1f43fe84634f74f56374fcd Mon Sep 17 00:00:00 2001 From: David Skoland Date: Thu, 2 Apr 2026 18:26:19 +0200 Subject: Fix preanims not playing on blank posts The early return guard `textnow === chatmsg.content` was firing on the first tick for empty messages ("" === ""), short-circuiting the entire animation timeline before the preanim or shout phases could run. Now the guard also checks that both tick phases have completed before allowing the early exit. Co-Authored-By: Claude Opus 4.6 (1M context) --- webAO/viewport/viewport.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webAO/viewport/viewport.ts b/webAO/viewport/viewport.ts index b37ff06..45cfc96 100644 --- a/webAO/viewport/viewport.ts +++ b/webAO/viewport/viewport.ts @@ -493,7 +493,7 @@ const viewport = (): Viewport => { playSFX(sfxUrl, chatmsg.looping_sfx); } } - if (textnow === chatmsg.content) { + if (textnow === chatmsg.content && !startFirstTickCheck && !startSecondTickCheck) { return; } if (animating) { -- cgit