inventory fix
This commit is contained in:
parent
900e4ae098
commit
fea123bc5f
@ -130,7 +130,7 @@ void HudRenderer::draw(Level* level, Assets* assets){
|
|||||||
int inv_y = (Window::height - (inv_h)) / 2;
|
int inv_y = (Window::height - (inv_h)) / 2;
|
||||||
int xs = (Window::width - inv_w + step)/2;
|
int xs = (Window::width - inv_w + step)/2;
|
||||||
int ys = (Window::height - inv_h + step)/2;
|
int ys = (Window::height - inv_h + step)/2;
|
||||||
if (Window::width > inv_wm*3){
|
if (Window::width > inv_w*3){
|
||||||
inv_x = (Window::width + (inv_w)) / 2;
|
inv_x = (Window::width + (inv_w)) / 2;
|
||||||
inv_y = (Window::height - (inv_h)) / 2;
|
inv_y = (Window::height - (inv_h)) / 2;
|
||||||
xs = (Window::width + inv_w + step)/2;
|
xs = (Window::width + inv_w + step)/2;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user