From cce91746dac4e356313148c3c58ffd6c46bb647e Mon Sep 17 00:00:00 2001 From: Patiga Date: Tue, 27 Oct 2020 12:15:11 +0100 Subject: [PATCH] Use IntsToStr function from gamecore.h --- src/tools/map_convert_07.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/tools/map_convert_07.cpp b/src/tools/map_convert_07.cpp index 3e6e32dc0..9451f2696 100644 --- a/src/tools/map_convert_07.cpp +++ b/src/tools/map_convert_07.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include /* @@ -64,23 +65,6 @@ int LoadPNG(CImageInfo *pImg, const char *pFilename) return 1; } -inline void IntsToStr(const int *pInts, int Num, char *pStr) -{ - while(Num) - { - pStr[0] = (((*pInts) >> 24) & 0xff) - 128; - pStr[1] = (((*pInts) >> 16) & 0xff) - 128; - pStr[2] = (((*pInts) >> 8) & 0xff) - 128; - pStr[3] = ((*pInts) & 0xff) - 128; - pStr += 4; - pInts++; - Num--; - } - - // null terminate - pStr[-1] = 0; -} - bool CheckImageDimensions(void *pItem, int Type, const char *pFilename) { if(Type != MAPITEMTYPE_LAYER)