- fixed positioning of World Tour status bar

Fixes #355.
This commit is contained in:
Christoph Oelckers 2020-09-06 23:54:40 +02:00
parent 57db150ed3
commit 0c60b28ea1
1 changed files with 2 additions and 1 deletions

View File

@ -383,9 +383,10 @@ public:
auto p = &ps[snum];
int h = tilesiz[TILE_BOTTOMSTATUSBAR].y;
int top = 200 - h;
int left = (320 - tilesiz[TILE_BOTTOMSTATUSBAR].x) / 2;
BeginStatusBar(320, 200, h);
DrawInventory(p, 160, 154, 0);
DrawGraphic(tileGetTexture(TILE_BOTTOMSTATUSBAR), 0, top, DI_ITEM_LEFT_TOP, 1, -1, -1, 1, 1);
DrawGraphic(tileGetTexture(TILE_BOTTOMSTATUSBAR), left, top, DI_ITEM_LEFT_TOP, 1, -1, -1, 1, 1);
FString format;