mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix some minor code issues all over the place
This commit is contained in:
parent
289425f6bd
commit
74762470b2
19 changed files with 45 additions and 109 deletions
|
@ -1055,9 +1055,9 @@ void drawItemStack(
|
|||
|
||||
if (def.type == ITEM_TOOL && item.wear != 0) {
|
||||
// Draw a progressbar
|
||||
float barheight = rect.getHeight() / 16;
|
||||
float barpad_x = rect.getWidth() / 16;
|
||||
float barpad_y = rect.getHeight() / 16;
|
||||
float barheight = static_cast<float>(rect.getHeight()) / 16;
|
||||
float barpad_x = static_cast<float>(rect.getWidth()) / 16;
|
||||
float barpad_y = static_cast<float>(rect.getHeight()) / 16;
|
||||
|
||||
core::rect<s32> progressrect(
|
||||
rect.UpperLeftCorner.X + barpad_x,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue