Fixing some warnings

master
Tomasz Kapuściński 2015-05-19 17:15:08 +02:00
parent df8223700b
commit 3a1dffd8df
3 changed files with 4 additions and 3 deletions

View File

@ -3636,7 +3636,7 @@ void CEngine::RenderShadowMap()
// If no shadow map texture exists, create it
if (m_shadowMap.id == 0)
{
int width, height;
int width = 256, height = 256;
int depth = m_app->GetInstance().GetVideoConfig().depthSize;

View File

@ -361,7 +361,8 @@ bool CBrain::EventProcess(const Event &event)
}
SetSelScript(m_selScript);
StartEditScript(newProgram, "");
char text[] = "";
StartEditScript(newProgram, text);
std::string res;
GetResource(RES_TEXT, RT_STUDIO_CLONED, res);

View File

@ -3626,7 +3626,7 @@ bool CScriptFunctions::rfread (CBotVar* pThis, CBotVar* pVar, CBotVar* pResult,
int i;
for ( i = 0 ; i < 2000 ; i++ ) chaine[i] = 0;
fgets(chaine, 1999, pFile);
(void) fgets(chaine, 1999, pFile);
for ( i = 0 ; i < 2000 ; i++ ) if (chaine[i] == '\n') chaine[i] = 0;