mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
gcc fix
This commit is contained in:
parent
64ce34af0e
commit
c00d0e4aca
@ -482,7 +482,8 @@ void CBattleInterface::bOptionsf()
|
|||||||
CGI->curh->changeGraphic(0,0);
|
CGI->curh->changeGraphic(0,0);
|
||||||
LOCPLINT->curint->deactivate();
|
LOCPLINT->curint->deactivate();
|
||||||
|
|
||||||
CBattleOptionsWindow * optionsWin = new CBattleOptionsWindow(genRect(431, 481, 160, 84), this);
|
SDL_Rect temp_rect = genRect(431, 481, 160, 84);
|
||||||
|
CBattleOptionsWindow * optionsWin = new CBattleOptionsWindow(temp_rect, this);
|
||||||
optionsWin->activate();
|
optionsWin->activate();
|
||||||
LOCPLINT->objsToBlit.push_back(optionsWin);
|
LOCPLINT->objsToBlit.push_back(optionsWin);
|
||||||
}
|
}
|
||||||
|
@ -190,7 +190,7 @@ unsigned char * CDefHandler::writeNormalNr (int nr, int bytCon)
|
|||||||
if(ret!=NULL)
|
if(ret!=NULL)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
long long amp = pow((float)256,bytCon-1);
|
long long amp = pow(256,bytCon-1);
|
||||||
for (int i=bytCon-1; i>=0;i--)
|
for (int i=bytCon-1; i>=0;i--)
|
||||||
{
|
{
|
||||||
int test2 = nr/(amp);
|
int test2 = nr/(amp);
|
||||||
|
Loading…
Reference in New Issue
Block a user