Commit 111222aa authored by mercury233's avatar mercury233

minor fix warning C4305

parent 43416646
...@@ -80,8 +80,8 @@ inline void ShowBigCard(int code, float zoom) { ...@@ -80,8 +80,8 @@ inline void ShowBigCard(int code, float zoom) {
inline void ZoomBigCard(s32 centerx = -1, s32 centery = -1) { inline void ZoomBigCard(s32 centerx = -1, s32 centery = -1) {
if(mainGame->deckBuilder.bigcard_zoom >= 4) if(mainGame->deckBuilder.bigcard_zoom >= 4)
mainGame->deckBuilder.bigcard_zoom = 4; mainGame->deckBuilder.bigcard_zoom = 4;
if(mainGame->deckBuilder.bigcard_zoom <= 0.2) if(mainGame->deckBuilder.bigcard_zoom <= 0.2f)
mainGame->deckBuilder.bigcard_zoom = 0.2; mainGame->deckBuilder.bigcard_zoom = 0.2f;
ITexture* img = imageManager.GetBigPicture(mainGame->deckBuilder.bigcard_code, mainGame->deckBuilder.bigcard_zoom); ITexture* img = imageManager.GetBigPicture(mainGame->deckBuilder.bigcard_code, mainGame->deckBuilder.bigcard_zoom);
mainGame->imgBigCard->setImage(img); mainGame->imgBigCard->setImage(img);
auto size = img->getSize(); auto size = img->getSize();
...@@ -310,12 +310,12 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) { ...@@ -310,12 +310,12 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
break; break;
} }
case BUTTON_BIG_CARD_ZOOM_IN: { case BUTTON_BIG_CARD_ZOOM_IN: {
bigcard_zoom += 0.2; bigcard_zoom += 0.2f;
ZoomBigCard(); ZoomBigCard();
break; break;
} }
case BUTTON_BIG_CARD_ZOOM_OUT: { case BUTTON_BIG_CARD_ZOOM_OUT: {
bigcard_zoom -= 0.2; bigcard_zoom -= 0.2f;
ZoomBigCard(); ZoomBigCard();
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment