aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/keys.h3
-rw-r--r--src/environment.cpp1
-rw-r--r--src/gameparams.h3
-rw-r--r--src/gettime.h3
-rw-r--r--src/script/lua_api/l_client.cpp4
5 files changed, 9 insertions, 5 deletions
diff --git a/src/client/keys.h b/src/client/keys.h
index b446d3a1e..76ae38ff0 100644
--- a/src/client/keys.h
+++ b/src/client/keys.h
@@ -25,7 +25,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
class KeyType
{
public:
- enum T {
+ enum T
+ {
// Player movement
FORWARD,
BACKWARD,
diff --git a/src/environment.cpp b/src/environment.cpp
index d1ea5f8bb..9c2ea8896 100644
--- a/src/environment.cpp
+++ b/src/environment.cpp
@@ -26,6 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "daynightratio.h"
#include "emerge.h"
+
Environment::Environment(IGameDef *gamedef):
m_time_of_day_speed(0),
m_time_of_day(9000),
diff --git a/src/gameparams.h b/src/gameparams.h
index bf9953c39..4afc0fdce 100644
--- a/src/gameparams.h
+++ b/src/gameparams.h
@@ -24,7 +24,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
struct SubgameSpec;
-struct GameParams {
+struct GameParams
+{
u16 socket_port;
std::string world_path;
SubgameSpec game_spec;
diff --git a/src/gettime.h b/src/gettime.h
index 6e70b8533..b2f09a7bb 100644
--- a/src/gettime.h
+++ b/src/gettime.h
@@ -31,7 +31,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
Normal build: main.cpp
Server build: servermain.cpp
*/
-enum TimePrecision {
+enum TimePrecision
+{
PRECISION_SECONDS = 0,
PRECISION_MILLI,
PRECISION_MICRO,
diff --git a/src/script/lua_api/l_client.cpp b/src/script/lua_api/l_client.cpp
index 0f4d7eaae..be3a749de 100644
--- a/src/script/lua_api/l_client.cpp
+++ b/src/script/lua_api/l_client.cpp
@@ -212,8 +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;
}