From 85fb9f0a75f9a441d35e0ed48f250d7b07301483 Mon Sep 17 00:00:00 2001 From: drumsetmonkey Date: Thu, 17 Dec 2015 08:29:01 -0500 Subject: Shit --- src/ui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui.cpp') diff --git a/src/ui.cpp b/src/ui.cpp index 08f503f..b759012 100644 --- a/src/ui.cpp +++ b/src/ui.cpp @@ -556,7 +556,7 @@ namespace ui { hub.y-=fontSize*1.15; glRectf(hub.x, hub.y, - hub.x+(player->health/player->maxHealth)*130, + hub.x+(player->health/player->maxHealth?player->maxHealth:1)*130, hub.y+12); } -- cgit v1.2.3