aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2017-04-06 09:10:59 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2017-04-06 09:10:59 +0200
commit4b15f76ed163b1e0b95b50017bd39e73400601b4 (patch)
treefa2cd0943bea8c05773f3c4135f5631c3eea6e54 /src
parent503e1d2b7c800a76a161541d90b799e9786adbd9 (diff)
downloadminetest-4b15f76ed163b1e0b95b50017bd39e73400601b4.tar.gz
minetest-4b15f76ed163b1e0b95b50017bd39e73400601b4.tar.bz2
minetest-4b15f76ed163b1e0b95b50017bd39e73400601b4.zip
Move LINT process in dedicated shell & fix
Move lint to dedicated shell permit to use it from your shell easily to check what is wrong Also fix recent regressions in code style
Diffstat (limited to 'src')
-rw-r--r--src/script/lua_api/l_client.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/script/lua_api/l_client.cpp b/src/script/lua_api/l_client.cpp
index 2d906985f..458c1d1f4 100644
--- a/src/script/lua_api/l_client.cpp
+++ b/src/script/lua_api/l_client.cpp
@@ -19,6 +19,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
*/
#include "l_client.h"
+#include "clientenvironment.h"
#include "common/c_content.h"
#include "common/c_converter.h"
#include "cpp_api/s_base.h"
@@ -27,9 +28,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "lua_api/l_item.h"
#include "lua_api/l_nodemeta.h"
#include "mainmenumanager.h"
-#include "util/string.h"
-#include "clientenvironment.h"
#include "map.h"
+#include "util/string.h"
extern MainGameCallback *g_gamecallback;
@@ -200,7 +200,7 @@ int ModApiClient::l_sound_play(lua_State *L)
SimpleSoundSpec spec;
read_soundspec(L, 1, spec);
- float gain = 1.0 ;
+ float gain = 1.0;
bool looped = false;
s32 handle;
@@ -212,7 +212,8 @@ int ModApiClient::l_sound_play(lua_State *L)
if (!lua_isnil(L, -1)) {
v3f pos = read_v3f(L, -1) * BS;
lua_pop(L, 1);
- handle = sound->playSoundAt(spec.name, looped, gain * spec.gain, pos);
+ handle =
+ sound->playSoundAt(spec.name, looped, gain * spec.gain, pos);
lua_pushinteger(L, handle);
return 1;
}