diff --git a/source/exhumed/src/names.h b/source/exhumed/src/names.h index 9bb8225b6..a81d83371 100644 --- a/source/exhumed/src/names.h +++ b/source/exhumed/src/names.h @@ -676,7 +676,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #define kTile654 654 #define kTile655 655 #define kTile656 656 -#define kTile657 657 +#define kTileStatusBar 657 #define kTile658 658 #define kTile659 659 #define kTile660 660 diff --git a/source/exhumed/src/status.cpp b/source/exhumed/src/status.cpp index 00a6b8a8b..42bbfcb3c 100644 --- a/source/exhumed/src/status.cpp +++ b/source/exhumed/src/status.cpp @@ -545,8 +545,13 @@ private: int flags = DI_ITEM_RELCENTER; - int x = ChunkXpos[nFrameBase]; - int y = ChunkYpos[nFrameBase] + ebx; + double x = ChunkXpos[nFrameBase]; + double y = ChunkYpos[nFrameBase] + ebx; + + if (x > 0) + { + if (xoffset == 0) { x += 0.5; y += 0.5; } + } if (hud_size <= Hud_StbarOverlay) { @@ -710,7 +715,7 @@ private: { // draw the main bar itself BeginStatusBar(320, 200, 40); - DrawStatusSequence(nStatusSeqOffset, 0, 0); + DrawGraphic(tileGetTexture(kTileStatusBar), 160, 200, DI_ITEM_CENTER_BOTTOM, 1, -1, -1, 1, 1); } else if (hud_size == Hud_Mini) {