harmless code beautification

This commit is contained in:
Enno Rehling 2010-10-31 19:33:18 -07:00
parent 279fa623d9
commit 321c0816f6
1 changed files with 9 additions and 9 deletions

View File

@ -199,15 +199,6 @@ static int tolua_region_set_morale(lua_State* L)
return 0; 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) static int tolua_region_get_adj(lua_State* L)
{ {
region* r = (region*)tolua_tousertype(L, 1, 0); region* r = (region*)tolua_tousertype(L, 1, 0);
@ -290,6 +281,15 @@ static int tolua_region_get_next(lua_State* L)
return 0; 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) static int tolua_region_set_flag(lua_State* L)
{ {
region* self = (region*)tolua_tousertype(L, 1, 0); region* self = (region*)tolua_tousertype(L, 1, 0);