1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-28 19:55:30 +01:00

LINT: Switch whitelist check from egrep to awk

Bonus: make CI happy with the last rules fix
This commit is contained in:
Loïc Blot
2017-04-06 16:03:29 +02:00
committed by Loic Blot
parent 88b9b9652a
commit 3a90b78a03
6 changed files with 12 additions and 7 deletions

View File

@@ -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,

View File

@@ -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),

View File

@@ -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;

View File

@@ -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,

View File

@@ -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;
}