From 2713c2d3c3b1bea86236adf673fe596cb14856fd Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 21 Aug 2020 00:54:57 +0200 Subject: [PATCH] - deleted unused printext function. --- source/exhumed/src/engine.h | 1 - source/exhumed/src/enginesubs.cpp | 46 ------------------------------- 2 files changed, 47 deletions(-) diff --git a/source/exhumed/src/engine.h b/source/exhumed/src/engine.h index be16105b5..3a719f14a 100644 --- a/source/exhumed/src/engine.h +++ b/source/exhumed/src/engine.h @@ -45,7 +45,6 @@ int movesprite(short spritenum, int dx, int dy, int dz, int ceildist, int flordi void overwritesprite(int thex, int they, short tilenum, signed char shade, char stat, char dapalnum, int basepal = 0); void precache(); void resettiming(); -void printext(int x, int y, const char* buffer, short tilenum, char invisiblecol); // cd diff --git a/source/exhumed/src/enginesubs.cpp b/source/exhumed/src/enginesubs.cpp index 0be6d0f26..8ce36dee5 100644 --- a/source/exhumed/src/enginesubs.cpp +++ b/source/exhumed/src/enginesubs.cpp @@ -29,11 +29,6 @@ BEGIN_PS_NS void overwritesprite(int thex, int they, short tilenum, signed char shade, char stat, char dapalnum, int basepal) { -#if 0 - rotatesprite(thex << 16, they << 16, 0x10000, (short)((flags & 8) << 7), tilenum, shade, dapalnum, - (char)(((flags & 1 ^ 1) << 4) + (flags & 2) + ((flags & 4) >> 2) + ((flags & 16) >> 2) ^ ((flags & 8) >> 1)), - windowx1, windowy1, windowx2, windowy2); -#endif // no animation uint8_t animbak = picanm[tilenum].sf; picanm[tilenum].sf = 0; @@ -66,47 +61,6 @@ void resettiming() // TODO totalclocklock = 0L; } - -static int32_t xdim_to_320_16(int32_t x) -{ - const int32_t screenwidth = scale(240<<16, xdim, ydim); - return scale(x, screenwidth, xdim) + (160<<16) - (screenwidth>>1); -} - -static int32_t ydim_to_200_16(int32_t y) -{ - return scale(y, 200<<16, ydim); -} - -static int32_t xdim_from_320_16(int32_t x) -{ - const int32_t screenwidth = scale(240<<16, xdim, ydim); - return scale(x + (screenwidth>>1) - (160<<16), xdim, screenwidth); -} - -static int32_t ydim_from_200_16(int32_t y) -{ - return scale(y, ydim, 200<<16); -} - -void printext(int x, int y, const char *buffer, short tilenum, char UNUSED(invisiblecol)) -{ - int i; - unsigned char ch; -// const int32_t screenwidth = scale(240<<16, xdim, ydim); - - x = xdim_to_320_16(x); - y = ydim_to_200_16(y); - - for (i = 0; buffer[i] != 0; i++) - { - ch = (unsigned char)buffer[i]; - rotatesprite(x - ((ch & 15) << (3+16)), y - ((ch >> 4) << (3+16)), 65536L, 0, tilenum, 0, 0, 2 + 8 + 16 + 128, xdim_from_320_16(x), ydim_from_200_16(y), - xdim_from_320_16(x + (8<<16))-1, ydim_from_200_16(y + (8<<16))-1); - x += (8<<16); - } -} - void doTileLoad(int i) { tileLoad(i);