Fixing some warnings
parent
df8223700b
commit
3a1dffd8df
|
@ -3636,7 +3636,7 @@ void CEngine::RenderShadowMap()
|
||||||
// If no shadow map texture exists, create it
|
// If no shadow map texture exists, create it
|
||||||
if (m_shadowMap.id == 0)
|
if (m_shadowMap.id == 0)
|
||||||
{
|
{
|
||||||
int width, height;
|
int width = 256, height = 256;
|
||||||
|
|
||||||
int depth = m_app->GetInstance().GetVideoConfig().depthSize;
|
int depth = m_app->GetInstance().GetVideoConfig().depthSize;
|
||||||
|
|
||||||
|
|
|
@ -361,7 +361,8 @@ bool CBrain::EventProcess(const Event &event)
|
||||||
}
|
}
|
||||||
SetSelScript(m_selScript);
|
SetSelScript(m_selScript);
|
||||||
|
|
||||||
StartEditScript(newProgram, "");
|
char text[] = "";
|
||||||
|
StartEditScript(newProgram, text);
|
||||||
|
|
||||||
std::string res;
|
std::string res;
|
||||||
GetResource(RES_TEXT, RT_STUDIO_CLONED, res);
|
GetResource(RES_TEXT, RT_STUDIO_CLONED, res);
|
||||||
|
|
|
@ -3626,7 +3626,7 @@ bool CScriptFunctions::rfread (CBotVar* pThis, CBotVar* pVar, CBotVar* pResult,
|
||||||
int i;
|
int i;
|
||||||
for ( i = 0 ; i < 2000 ; i++ ) chaine[i] = 0;
|
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;
|
for ( i = 0 ; i < 2000 ; i++ ) if (chaine[i] == '\n') chaine[i] = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue