Skip to content

Commit 769650d

Browse files
SmallJokerZeno-
authored andcommitted
Fix MSVC build
Note: The unit test is technically incorrect for all platforms but passes due to implicit casting
1 parent a648120 commit 769650d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hud.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ void Hud::drawItems(v2s32 upperleftpos, s32 itemcount, s32 offset,
238238

239239

240240
void Hud::drawLuaElements(v3s16 camera_offset) {
241-
uint32_t text_height = g_fontengine->getTextHeight();
241+
u32 text_height = g_fontengine->getTextHeight();
242242
irr::gui::IGUIFont* font = g_fontengine->getFont();
243243
for (size_t i = 0; i != player->maxHudId(); i++) {
244244
HudElement *e = player->getHud(i);

src/test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ struct TestSettings: public TestBase
555555
UASSERT(fabs(np.spread.Z - 250) < 0.001);
556556
UASSERT(np.seed == 12345);
557557
UASSERT(np.octaves == 5);
558-
UASSERT(fabs(np.persist == 0.7) < 0.001);
558+
UASSERT(fabs(np.persist - 0.7) < 0.001);
559559

560560
np.offset = 3.5;
561561
np.octaves = 6;

0 commit comments

Comments
 (0)