Commit 1db8718c authored by hybrid's avatar hybrid

Remove white spaces before semicolon

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4544 dfc29bdd-3216-0410-991c-e03cc46cb475
parent b93788fa
...@@ -790,7 +790,7 @@ namespace quake3 ...@@ -790,7 +790,7 @@ namespace quake3
for ( u32 i = 0; i!= stringList.size (); ++i ) for ( u32 i = 0; i!= stringList.size (); ++i )
{ {
video::ITexture* texture = 0; video::ITexture* texture = 0;
for (u32 g = 0; g != 7 ; ++g) for (u32 g = 0; g != 7; ++g)
{ {
core::cutFilenameExtension ( loadFile, stringList[i] ); core::cutFilenameExtension ( loadFile, stringList[i] );
......
...@@ -2138,7 +2138,7 @@ namespace core ...@@ -2138,7 +2138,7 @@ namespace core
M[6] = (T)y; M[6] = (T)y;
#if defined ( USE_MATRIX_TEST ) #if defined ( USE_MATRIX_TEST )
definitelyIdentityMatrix = definitelyIdentityMatrix && (x==0.0f) && (y==0.0f) ; definitelyIdentityMatrix = definitelyIdentityMatrix && (x==0.0f) && (y==0.0f);
#endif #endif
return *this; return *this;
} }
......
...@@ -1179,10 +1179,10 @@ protected: ...@@ -1179,10 +1179,10 @@ protected:
void reset() void reset()
{ {
if (IsFloat) if (IsFloat)
for (u32 i=0; i < Count ; ++i) for (u32 i=0; i < Count; ++i)
ValueF[i] = 0.0f; ValueF[i] = 0.0f;
else else
for (u32 i=0; i < Count ; ++i) for (u32 i=0; i < Count; ++i)
ValueI[i] = 0; ValueI[i] = 0;
} }
......
...@@ -328,15 +328,13 @@ void process_uncomp( ...@@ -328,15 +328,13 @@ void process_uncomp(
//----------------------------------------------------------- //-----------------------------------------------------------
void flush_outbuf(unsigned char *out_buf, int out_buf_size) void flush_outbuf(unsigned char *out_buf, int out_buf_size)
{ {
register int pos=0; if (!outbuf_cnt)
if(!outbuf_cnt)
return; // nothing to do */ return; // nothing to do */
// send no. of unencoded bytes to be sent // send no. of unencoded bytes to be sent
put_byte((unsigned char)(outbuf_cnt - 1), out_buf, out_buf_size); put_byte((unsigned char)(outbuf_cnt - 1), out_buf, out_buf_size);
for ( ; outbuf_cnt; outbuf_cnt--) for (int pos=0; outbuf_cnt; outbuf_cnt--)
put_byte((unsigned char)outbuf[pos++], out_buf, out_buf_size); put_byte((unsigned char)outbuf[pos++], out_buf, out_buf_size);
} }
//--------------------------------------------------- //---------------------------------------------------
...@@ -409,7 +407,7 @@ int rle_decode ( ...@@ -409,7 +407,7 @@ int rle_decode (
nReadedBytes++; nReadedBytes++;
// uncompress a chunk // uncompress a chunk
for ( ; i ; i--) for (; i; --i)
{ {
if (nDecodedBytes<out_buf_size) if (nDecodedBytes<out_buf_size)
out_buf[nDecodedBytes] = ch; out_buf[nDecodedBytes] = ch;
...@@ -419,9 +417,8 @@ int rle_decode ( ...@@ -419,9 +417,8 @@ int rle_decode (
else else
{ {
// copy out some uncompressed bytes // copy out some uncompressed bytes
i = ch + 1; // i is the no. of bytes // i is the no. of bytes
// uncompress a chunk for (i = ch + 1; i; --i)
for ( ; i ; i--)
{ {
if (nReadedBytes>=in_buf_size) if (nReadedBytes>=in_buf_size)
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