Skip to content

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
juhdanad authored and sofar committed Apr 9, 2017
1 parent c183669 commit 7641cc7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/script/lua_api/l_metadata.cpp
Expand Up @@ -252,15 +252,15 @@ bool MetaDataRef::handleFromTable(lua_State *L, int table, Metadata *meta)
}

// equals(self, other)
int MetaDataRef::l_equals(lua_State *L){
int MetaDataRef::l_equals(lua_State *L)
{
MetaDataRef *ref1 = checkobject(L, 1);
Metadata *data1 = ref1->getmeta(false);
MetaDataRef *ref2 = checkobject(L, 2);
Metadata *data2 = ref2->getmeta(false);
if (data1 == NULL || data2 == NULL) {
if (data1 == NULL || data2 == NULL)
lua_pushboolean(L, data1 == data2);
return 1;
}
lua_pushboolean(L, *data1 == *data2);
else
lua_pushboolean(L, *data1 == *data2);
return 1;
}
3 changes: 2 additions & 1 deletion src/wieldmesh.h
Expand Up @@ -28,7 +28,8 @@ class Client;
class ITextureSource;
struct TileSpec;

struct ItemMesh {
struct ItemMesh
{
scene::IMesh* mesh;
/*!
* Stores the color of each mesh buffer.
Expand Down

0 comments on commit 7641cc7

Please sign in to comment.