From 01770ec720436d4036ce221ea547187b16b42c83 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Fri, 7 Jun 2013 14:26:35 +0000 Subject: [PATCH] Fix accessing the wrong animation indices with negative viewtypes. (I think; untested.) git-svn-id: https://svn.eduke32.com/eduke32@3863 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/game.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index bdb031073..88e99e455 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -7654,7 +7654,9 @@ PALONLY: break; } -#ifndef LUNATIC + l = klabs(l); + +#if !defined LUNATIC t->picnum += k + script[t_data4] + l*t_data3; #else t->picnum += k + startframe + l*t_data3;