Skip to content

Commit

Permalink
Fix -Werror=misleading-indentation (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
BigWolfy1339 authored and jacob1 committed Feb 20, 2017
1 parent ac8c01a commit d9115fc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions src/lua/LuaScriptInterface.cpp
Expand Up @@ -1574,10 +1574,14 @@ int LuaScriptInterface::simulation_decoColor(lua_State * l)
b = luaL_optint(l, 3, 255);
a = luaL_optint(l, 4, 255);

if (r < 0) r = 0; if (r > 255) r = 255;
if (g < 0) g = 0; if (g > 255) g = 255;
if (b < 0) b = 0; if (b > 255) b = 255;
if (a < 0) a = 0; if (a > 255) a = 255;
if (r < 0) r = 0;
if (r > 255) r = 255;
if (g < 0) g = 0;
if (g > 255) g = 255;
if (b < 0) b = 0;
if (b > 255) b = 255;
if (a < 0) a = 0;
if (a > 255) a = 255;

color = (a << 24) + PIXRGB(r, g, b);
}
Expand Down
4 changes: 2 additions & 2 deletions src/simulation/elements/PIPE.cpp
Expand Up @@ -167,8 +167,8 @@ int Element_PIPE::update(UPDATE_FUNC_ARGS)
}
count++;
}
if(neighborcount == 1)
parts[lastneighbor].tmp |= 0x100;
if (neighborcount == 1)
parts[lastneighbor].tmp |= 0x100;
}
else
{
Expand Down

0 comments on commit d9115fc

Please sign in to comment.