From e4849dc9d49e03cc4f5d073f65bd4aad5f5b64d8 Mon Sep 17 00:00:00 2001 From: Denis Pauk Date: Sun, 30 Jun 2024 23:03:21 +0300 Subject: [PATCH] soft: remove unused R_PolysetUpdateTables --- README.md | 2 ++ src/client/refresh/soft/header/local.h | 1 - src/client/refresh/soft/sw_alias.c | 2 -- src/client/refresh/soft/sw_polyset.c | 30 -------------------------- 4 files changed, 2 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 866d8728..b5a55f75 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,8 @@ Goals: * [x] suport Daikatana/SiN .pak/.sin format from pakextract, * [x] Support flow/scale flags for Q64 maps, * [x] Add debug progress loading code for maps, +* [ ] MDR model format in Star Trek: Voyager – Elite Force, +* [ ] RGB particles support instead palette based one, * [ ] Broken maps groups from base2 to next, * [ ] Single player support, * [ ] Support effects and additional flags for ReRelease when possible. diff --git a/src/client/refresh/soft/header/local.h b/src/client/refresh/soft/header/local.h index bf004f5d..b0231070 100644 --- a/src/client/refresh/soft/header/local.h +++ b/src/client/refresh/soft/header/local.h @@ -313,7 +313,6 @@ extern qboolean r_dowarp; extern affinetridesc_t r_affinetridesc; void D_WarpScreen(void); -void R_PolysetUpdateTables(void); void RE_SetSky(const char *name, float rotate, int autorotate, const vec3_t axis); //=======================================================================// diff --git a/src/client/refresh/soft/sw_alias.c b/src/client/refresh/soft/sw_alias.c index 6bc74931..1a8277b4 100644 --- a/src/client/refresh/soft/sw_alias.c +++ b/src/client/refresh/soft/sw_alias.c @@ -595,8 +595,6 @@ R_AliasSetupSkin(const entity_t *currententity, const model_t *currentmodel) r_affinetridesc.skinwidth = pskindesc->width; r_affinetridesc.skinheight = pskindesc->height; - R_PolysetUpdateTables (); // FIXME: precalc edge lookups - return true; } diff --git a/src/client/refresh/soft/sw_polyset.c b/src/client/refresh/soft/sw_polyset.c index be26b9b5..8c0d71ec 100644 --- a/src/client/refresh/soft/sw_polyset.c +++ b/src/client/refresh/soft/sw_polyset.c @@ -79,11 +79,6 @@ static light3_t d_lightbasestep, d_lightextrastep; static int d_sfracbasestep, d_tfracbasestep; static zvalue_t d_ziextrastep, d_zibasestep; -/* TODO: remove hard limit */ -static byte *skintable[MAX_LBM_HEIGHT]; -int skinwidth; -static pixel_t *skinstart; - void (*d_pdrawspans)(const entity_t *currententity, spanpackage_t *pspanpackage); static void R_PolysetSetEdgeTable(void); @@ -134,31 +129,6 @@ static const byte irtable[256] = { // ====================== -/* -================ -R_PolysetUpdateTables -================ -*/ -void -R_PolysetUpdateTables (void) -{ - byte *s; - - if (r_affinetridesc.skinwidth != skinwidth || - r_affinetridesc.pskin != skinstart) - { - int i; - - skinwidth = r_affinetridesc.skinwidth; - skinstart = r_affinetridesc.pskin; - s = skinstart; - for (i = 0; i < MAX_LBM_HEIGHT; i++, s+=skinwidth) - { - skintable[i] = s; - } - } -} - /* ================ R_DrawTriangle