Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7641cc7

Browse files
juhdanadsofar
authored andcommittedApr 9, 2017
Style fixes
1 parent c183669 commit 7641cc7

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed
 

Diff for: ‎src/script/lua_api/l_metadata.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -252,15 +252,15 @@ bool MetaDataRef::handleFromTable(lua_State *L, int table, Metadata *meta)
252252
}
253253

254254
// equals(self, other)
255-
int MetaDataRef::l_equals(lua_State *L){
255+
int MetaDataRef::l_equals(lua_State *L)
256+
{
256257
MetaDataRef *ref1 = checkobject(L, 1);
257258
Metadata *data1 = ref1->getmeta(false);
258259
MetaDataRef *ref2 = checkobject(L, 2);
259260
Metadata *data2 = ref2->getmeta(false);
260-
if (data1 == NULL || data2 == NULL) {
261+
if (data1 == NULL || data2 == NULL)
261262
lua_pushboolean(L, data1 == data2);
262-
return 1;
263-
}
264-
lua_pushboolean(L, *data1 == *data2);
263+
else
264+
lua_pushboolean(L, *data1 == *data2);
265265
return 1;
266266
}

Diff for: ‎src/wieldmesh.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ class Client;
2828
class ITextureSource;
2929
struct TileSpec;
3030

31-
struct ItemMesh {
31+
struct ItemMesh
32+
{
3233
scene::IMesh* mesh;
3334
/*!
3435
* Stores the color of each mesh buffer.

0 commit comments

Comments
 (0)
Please sign in to comment.