Fixed compiler warnings.

This commit is contained in:
hiker 2018-08-27 08:53:58 +10:00
parent 94400b12d6
commit b3af6a0473
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ GhostReplayInfoDialog::GhostReplayInfoDialog(unsigned int replay_id,
/* Used to display kart icons for the selected replay(s) */
irr::gui::STKModifiedSpriteBank *icon_bank = GhostReplaySelection::getInstance()->getIconBank();
int icon_height = getHeight()/18.0f;
int icon_height = getHeight()/18;
m_replay_info_widget->setIcons(icon_bank, (int)icon_height);
updateReplayDisplayedInfo();

View File

@ -159,7 +159,7 @@ void GhostReplaySelection::init()
m_icon_unknown_kart = m_icon_bank->addTextureAsSprite(kart_not_found);
int icon_height = getHeight()/24.0f;
int icon_height = getHeight()/24;
// 128 is the height of the image file
//FIXME : this isn't guaranteed
// Amanda's icon is 300x300