From bc28e3268a40f528d808e874d4cd78320c521e27 Mon Sep 17 00:00:00 2001 From: avolkov Date: Wed, 14 Dec 2005 18:50:16 +0000 Subject: [PATCH] Cleanup: ExpandMap() was never used, and its job is done by TopoScale4x() now; (ugly code anyhow) git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2071 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/planets/plangen.c | 49 ------------------------------- 1 file changed, 49 deletions(-) diff --git a/sc2/src/sc2code/planets/plangen.c b/sc2/src/sc2code/planets/plangen.c index aba6807d0..76b7bb892 100644 --- a/sc2/src/sc2code/planets/plangen.c +++ b/sc2/src/sc2code/planets/plangen.c @@ -750,55 +750,6 @@ RenderLevelMasks (int offset) #endif } -#ifdef NOTYET -static void -ExpandMap (PSBYTE DepthArray) -{ - BYTE i, j; - PSBYTE lpSrc, lpDst; - - lpSrc = &DepthArray[(MAP_WIDTH >> 1) * ((MAP_HEIGHT >> 1) + 1) - 1]; - lpDst = &DepthArray[MAP_WIDTH * MAP_HEIGHT - 1]; - i = (MAP_HEIGHT >> 1) + 1; - do - { - SBYTE lf, rt; - - rt = lpSrc[-(MAP_WIDTH >> 1) + 1]; - lf = *lpSrc--; - *lpDst-- = (SBYTE)((rt + lf) >> 1); - *lpDst-- = lf; - - j = (MAP_WIDTH >> 1) - 1; - do - { - rt = lf; - lf = *lpSrc--; - *lpDst-- = (SBYTE)((rt + lf) >> 1); - *lpDst-- = lf; - } while (--j); - - lpDst -= MAP_WIDTH; - } while (--i); - - lpDst = &DepthArray[MAP_WIDTH]; - i = MAP_HEIGHT >> 1; - do - { - SBYTE top, bot; - - j = MAP_WIDTH; - do - { - top = lpDst[-MAP_WIDTH]; - bot = lpDst[MAP_WIDTH]; - *lpDst++ = (SBYTE)((top + bot) >> 1); - } while (--j); - - lpDst += MAP_WIDTH; - } while (--i); -} -#endif /* NOTYET */ #define RANGE_SHIFT 6