forked from github/server
harmless code beautification
This commit is contained in:
parent
279fa623d9
commit
321c0816f6
1 changed files with 9 additions and 9 deletions
|
@ -199,15 +199,6 @@ static int tolua_region_set_morale(lua_State* L)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int tolua_region_get_flag(lua_State* L)
|
||||
{
|
||||
region* self = (region*)tolua_tousertype(L, 1, 0);
|
||||
int bit = (int)tolua_tonumber(L, 2, 0);
|
||||
|
||||
lua_pushboolean(L, (self->flags & (1<<bit)));
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int tolua_region_get_adj(lua_State* L)
|
||||
{
|
||||
region* r = (region*)tolua_tousertype(L, 1, 0);
|
||||
|
@ -290,6 +281,15 @@ static int tolua_region_get_next(lua_State* L)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int tolua_region_get_flag(lua_State* L)
|
||||
{
|
||||
region* self = (region*)tolua_tousertype(L, 1, 0);
|
||||
int bit = (int)tolua_tonumber(L, 2, 0);
|
||||
|
||||
lua_pushboolean(L, (self->flags & (1<<bit)));
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int tolua_region_set_flag(lua_State* L)
|
||||
{
|
||||
region* self = (region*)tolua_tousertype(L, 1, 0);
|
||||
|
|
Loading…
Reference in a new issue