Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix MSVC build
Note: The unit test was technically incorrect for all platforms but passes due to implicit casting
  • Loading branch information
SmallJoker authored and Zeno- committed Dec 5, 2014
1 parent a648120 commit 5da6896
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hud.cpp
Expand Up @@ -238,7 +238,7 @@ void Hud::drawItems(v2s32 upperleftpos, s32 itemcount, s32 offset,


void Hud::drawLuaElements(v3s16 camera_offset) {
uint32_t text_height = g_fontengine->getTextHeight();
u32 text_height = g_fontengine->getTextHeight();
irr::gui::IGUIFont* font = g_fontengine->getFont();
for (size_t i = 0; i != player->maxHudId(); i++) {
HudElement *e = player->getHud(i);
Expand Down
2 changes: 1 addition & 1 deletion src/test.cpp
Expand Up @@ -555,7 +555,7 @@ struct TestSettings: public TestBase
UASSERT(fabs(np.spread.Z - 250) < 0.001);
UASSERT(np.seed == 12345);
UASSERT(np.octaves == 5);
UASSERT(fabs(np.persist == 0.7) < 0.001);
UASSERT(fabs(np.persist - 0.7) < 0.001);

np.offset = 3.5;
np.octaves = 6;
Expand Down

0 comments on commit 5da6896

Please sign in to comment.