From 755cbd341b8bb1a2d33a4cdd075533ce11afcfd1 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 25 Mar 2018 22:00:40 +0200 Subject: [PATCH] - fixed: A sprite having a picnum was not animating its image in the hardware renderer. --- src/gl/scene/gl_sprite.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gl/scene/gl_sprite.cpp b/src/gl/scene/gl_sprite.cpp index af7eec06c..c7efe1eb8 100644 --- a/src/gl/scene/gl_sprite.cpp +++ b/src/gl/scene/gl_sprite.cpp @@ -819,7 +819,10 @@ void GLSprite::Process(AActor* thing, sector_t * sector, int thruportal) // [ZZ] add direct picnum override if (isPicnumOverride) { - patch = thing->picnum; + // Animate picnum overrides. + auto tex = TexMan(thing->picnum); + if (tex == nullptr) return; + patch = tex->id; mirror = false; } else