Permalink
Browse files

Fix -Werror=misleading-indentation (#369)

  • Loading branch information...
BigWolfy1339 authored and jacob1 committed Feb 20, 2017
1 parent ac8c01a commit d9115fc3fe2accab193d3d85dda105d82a25d80b
Showing with 10 additions and 6 deletions.
  1. +8 −4 src/lua/LuaScriptInterface.cpp
  2. +2 −2 src/simulation/elements/PIPE.cpp
@@ -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);
}
@@ -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
{

0 comments on commit d9115fc

Please sign in to comment.