More type conversion warning cleanup.

This commit is contained in:
wrenczes@gmail.com
2010-11-07 12:09:04 +00:00
parent e717b2f260
commit 471cbd6ba4
5 changed files with 9 additions and 9 deletions

View File

@@ -1026,7 +1026,7 @@ void MTGMomirRule::Update(float dt){
alreadyplayed = 0;
}
if (textAlpha){
textAlpha -= (200*dt);
textAlpha -= static_cast<int>(200*dt);
if (textAlpha <0) textAlpha = 0;
}
MTGAbility::Update(dt);
@@ -1116,7 +1116,7 @@ void HUDDisplay::Render(){
float x0 = SCREEN_WIDTH-10-maxWidth-10;
float y0 = 20;
float size = events.size() * 16;
float size = static_cast<float>(events.size() * 16);
JRenderer * r = JRenderer::GetInstance();
r->FillRoundRect(x0,y0,maxWidth + 10,size,5,ARGB(50,0,0,0));