diff options
author | Loïc Blot <loic.blot@unix-experience.fr> | 2017-04-10 09:17:53 +0200 |
---|---|---|
committer | Loïc Blot <loic.blot@unix-experience.fr> | 2017-04-10 09:17:53 +0200 |
commit | b4106ca58f723a64bcaec619b7f5c686f5e4abb2 (patch) | |
tree | 5d6d63d24b1666d5e3fd5905f109985c70467581 /src | |
parent | 0419552c923d7088215cf711657d6223e1b8569a (diff) | |
download | minetest-b4106ca58f723a64bcaec619b7f5c686f5e4abb2.tar.gz minetest-b4106ca58f723a64bcaec619b7f5c686f5e4abb2.tar.bz2 minetest-b4106ca58f723a64bcaec619b7f5c686f5e4abb2.zip |
Clang-format styles fixes since previous commit
Diffstat (limited to 'src')
-rw-r--r-- | src/script/lua_api/l_localplayer.cpp | 19 | ||||
-rw-r--r-- | src/wieldmesh.h | 2 |
2 files changed, 15 insertions, 6 deletions
diff --git a/src/script/lua_api/l_localplayer.cpp b/src/script/lua_api/l_localplayer.cpp index 87190cb39..8aac5355c 100644 --- a/src/script/lua_api/l_localplayer.cpp +++ b/src/script/lua_api/l_localplayer.cpp @@ -21,7 +21,10 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "l_internal.h" #include "script/common/c_converter.h" -LuaLocalPlayer::LuaLocalPlayer(LocalPlayer *m) { m_localplayer = m; } +LuaLocalPlayer::LuaLocalPlayer(LocalPlayer *m) +{ + m_localplayer = m; +} void LuaLocalPlayer::create(lua_State *L, LocalPlayer *m) { @@ -332,7 +335,10 @@ LuaLocalPlayer *LuaLocalPlayer::checkobject(lua_State *L, int narg) return *(LuaLocalPlayer **)ud; } -LocalPlayer *LuaLocalPlayer::getobject(LuaLocalPlayer *ref) { return ref->m_localplayer; } +LocalPlayer *LuaLocalPlayer::getobject(LuaLocalPlayer *ref) +{ + return ref->m_localplayer; +} LocalPlayer *LuaLocalPlayer::getobject(lua_State *L, int narg) { @@ -376,8 +382,10 @@ void LuaLocalPlayer::Register(lua_State *L) } const char LuaLocalPlayer::className[] = "LocalPlayer"; -const luaL_reg LuaLocalPlayer::methods[] = {luamethod(LuaLocalPlayer, get_velocity), - luamethod(LuaLocalPlayer, get_hp), luamethod(LuaLocalPlayer, get_name), +const luaL_reg LuaLocalPlayer::methods[] = { + luamethod(LuaLocalPlayer, get_velocity), + luamethod(LuaLocalPlayer, get_hp), + luamethod(LuaLocalPlayer, get_name), luamethod(LuaLocalPlayer, is_teleported), luamethod(LuaLocalPlayer, is_attached), luamethod(LuaLocalPlayer, is_touching_ground), @@ -404,4 +412,5 @@ const luaL_reg LuaLocalPlayer::methods[] = {luamethod(LuaLocalPlayer, get_veloci luamethod(LuaLocalPlayer, get_movement_speed), luamethod(LuaLocalPlayer, get_movement), - {0, 0}}; + {0, 0} +}; diff --git a/src/wieldmesh.h b/src/wieldmesh.h index dee18ca23..d3946b4e0 100644 --- a/src/wieldmesh.h +++ b/src/wieldmesh.h @@ -36,7 +36,7 @@ struct ItemMesh * If the boolean is true, the color is fixed, else * palettes can modify it. */ - std::vector<std::pair<bool, video::SColor>> buffer_colors; + std::vector<std::pair<bool, video::SColor> > buffer_colors; ItemMesh() : mesh(NULL), buffer_colors() {} }; |