From 021799573e1ee8ae4080cdaa92581b038c51e046 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 5 Jul 2020 23:22:35 +0200 Subject: [PATCH] - fixed sprite animations. --- source/games/duke/src/animatesprites_d.cpp | 2 +- source/games/duke/src/animatesprites_r.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/games/duke/src/animatesprites_d.cpp b/source/games/duke/src/animatesprites_d.cpp index 481602b55..fbbfbe869 100644 --- a/source/games/duke/src/animatesprites_d.cpp +++ b/source/games/duke/src/animatesprites_d.cpp @@ -495,7 +495,7 @@ void animatesprites_d(int x,int y,int a,int smoothratio) break; } - if (ScriptCode[actorinfo[s->picnum].scriptaddress]) + if (actorinfo[s->picnum].scriptaddress) { if(t4) { diff --git a/source/games/duke/src/animatesprites_r.cpp b/source/games/duke/src/animatesprites_r.cpp index 146727365..688c750d8 100644 --- a/source/games/duke/src/animatesprites_r.cpp +++ b/source/games/duke/src/animatesprites_r.cpp @@ -635,7 +635,7 @@ void animatesprites_r(int x,int y,int a,int smoothratio) break; } - if( ScriptCode[actorinfo[s->picnum].scriptaddress] && (t->cstat & 48) != 48) + if(actorinfo[s->picnum].scriptaddress && (t->cstat & 48) != 48) { if(t4) {