From 086ef3f901bd1e865893add5aed1d71c22033cb9 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Mon, 22 Apr 2013 10:35:44 +0000 Subject: [PATCH] Remove 'cl_angleinterpolation' cvar because it had no effect for a while. Also remove the two instances of commented out code, but not the respective CON structure access code. git-svn-id: https://svn.eduke32.com/eduke32@3702 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/game.c | 10 ---------- polymer/eduke32/source/gameexec.c | 15 --------------- polymer/eduke32/source/osdcmds.c | 1 - 3 files changed, 26 deletions(-) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index e61ffabc6..fa861d10c 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -6844,16 +6844,6 @@ PALONLY: if (G_HaveActor(s->picnum)) { - /* - if (ud.angleinterpolation) - { - if (sprpos[i].ang != sprpos[i].oldang) - t->ang = (sprpos[i].oldang + (mulscale16((int32_t)(sprpos[i].angdif),smoothratio) * sprpos[i].angdir)) & 2047; - else - t->ang = sprpos[i].ang; - } - */ - #ifndef LUNATIC if ((unsigned)t_data4 + 2 >= (unsigned)g_scriptSize) goto skip; diff --git a/polymer/eduke32/source/gameexec.c b/polymer/eduke32/source/gameexec.c index d49ee35af..32da02f21 100644 --- a/polymer/eduke32/source/gameexec.c +++ b/polymer/eduke32/source/gameexec.c @@ -5313,21 +5313,6 @@ void A_Execute(int32_t iActor,int32_t iPlayer,int32_t lDist) VM_Move(); - /* if (ud.angleinterpolation) - { - temp = (vm.g_sp->ang & 2047) - sprpos[vm.g_i].ang; - sprpos[vm.g_i].oldang = sprpos[vm.g_i].ang; - if (temp) - { - temp2 = temp/klabs(temp); - if (klabs(temp) > 1024) temp2 = -(temp2); - sprpos[vm.g_i].angdir = temp2; - sprpos[vm.g_i].angdif = min(ud.angleinterpolation,klabs(temp)); - sprpos[vm.g_i].ang += sprpos[vm.g_i].angdif * sprpos[vm.g_i].angdir; - sprpos[vm.g_i].ang &= 2047; - } - } - */ if (vm.g_sp->statnum == STAT_STANDABLE) switch (DYNAMICTILEMAP(vm.g_sp->picnum)) { diff --git a/polymer/eduke32/source/osdcmds.c b/polymer/eduke32/source/osdcmds.c index fefd3a483..4215f816e 100644 --- a/polymer/eduke32/source/osdcmds.c +++ b/polymer/eduke32/source/osdcmds.c @@ -1435,7 +1435,6 @@ int32_t registerosdcommands(void) { "cl_weaponsway", "cl_weaponsway: enable/disable player weapon swaying", (void *)&ud.weaponsway, CVAR_BOOL, 0, 1 }, { "cl_weaponswitch", "cl_weaponswitch: enable/disable auto weapon switching", (void *)&ud.weaponswitch, CVAR_INT|CVAR_MULTI, 0, 7 }, - { "cl_angleinterpolation", "cl_angleinterpolation: enable/disable angle interpolation", (void *)&ud.angleinterpolation, CVAR_INT, 0, 256 }, { "color", "color: changes player palette", (void *)&ud.color, CVAR_INT|CVAR_MULTI, 0, g_numRealPalettes },