Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions gframe/drawing.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <algorithm>
#include "game.h"
#ifdef __APPLE__
#include <OpenGL/gl.h>
Expand Down Expand Up @@ -587,9 +588,9 @@ void Game::DrawMisc() {
driver->draw2DRectangle(0xa0000000, Resize(689, 8, 992, 51));
driver->draw2DRectangleOutline(Resize(689, 8, 992, 51), 0xffff8080);
}
if(dInfo.start_lp) {
if(dInfo.start_lp > 0) {
constexpr float maxBarWidth = 292.0f;
auto maxLP = dInfo.isTag ? dInfo.start_lp / 2 : dInfo.start_lp;
auto maxLP = dInfo.isTag ? std::max(dInfo.start_lp / 2, 1) : dInfo.start_lp;
if(dInfo.lp[0] > maxLP) {
auto layerCount = dInfo.lp[0] / maxLP;
auto partialLP = dInfo.lp[0] % maxLP;
Expand Down
Loading