From c243bab0e7ba4858843a58c0325b61de492db57e Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 7 Jul 2013 20:59:07 +0000 Subject: [PATCH] Remove one instance of duplicate code lines and now unused TSPR_MIRROR. git-svn-id: https://svn.eduke32.com/eduke32@3936 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/include/build.h | 1 - polymer/eduke32/build/src/polymost.c | 6 ------ polymer/eduke32/source/game.c | 3 --- 3 files changed, 10 deletions(-) diff --git a/polymer/eduke32/build/include/build.h b/polymer/eduke32/build/include/build.h index b0d111ce7..24d18d631 100644 --- a/polymer/eduke32/build/include/build.h +++ b/polymer/eduke32/build/include/build.h @@ -89,7 +89,6 @@ enum rendmode_t { #define NORMALPAL (MAXPALOOKUPS - 4) #define TSPR_TEMP 99 -#define TSPR_MIRROR 100 #define PR_LIGHT_PRIO_MAX 0 #define PR_LIGHT_PRIO_MAX_GAME 1 diff --git a/polymer/eduke32/build/src/polymost.c b/polymer/eduke32/build/src/polymost.c index e190d2400..0f2a873c7 100644 --- a/polymer/eduke32/build/src/polymost.c +++ b/polymer/eduke32/build/src/polymost.c @@ -3723,12 +3723,6 @@ void polymost_drawsprite(int32_t snum) { if (usemodels && tile2model[Ptile2tile(tspr->picnum,tspr->pal)].modelid >= 0 && tile2model[Ptile2tile(tspr->picnum,tspr->pal)].framenum >= 0) { - if (spritenum >= MAXSPRITES || tspr->statnum == TSPR_MIRROR) - { - if (mddraw(tspr)) return; - break; // else, render as flat sprite - } - if (mddraw(tspr)) return; diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index 6ba79c68f..a66829735 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -7048,9 +7048,6 @@ static void G_DoEventAnimSprites(int32_t j) { const int32_t ow = tsprite[j].owner; - if (display_mirror) - tsprite[j].statnum = TSPR_MIRROR; - if ((unsigned)ow < MAXSPRITES && spriteext[ow].flags & SPREXT_TSPRACCESS) { spriteext[ow].tspr = &tsprite[j];