Another Lint commit

This commit is contained in:
Elias Fleckenstein 2020-10-18 14:33:13 +02:00
parent 151e5782e1
commit 7e0f8fba02
2 changed files with 3 additions and 3 deletions

View File

@ -48,8 +48,8 @@ void CheatMenu::drawEntry(video::IVideoDriver *driver, std::string name, int num
} else { } else {
bool is_category = entry_type == CHEAT_MENU_ENTRY_TYPE_CATEGORY; bool is_category = entry_type == CHEAT_MENU_ENTRY_TYPE_CATEGORY;
y += m_gap + m_head_height + y += m_gap + m_head_height +
(number + (is_category ? 0 : m_selected_category)) * (number + (is_category ? 0 : m_selected_category)) *
(m_entry_height + m_gap); (m_entry_height + m_gap);
x += (is_category ? 0 : m_gap + m_entry_width); x += (is_category ? 0 : m_gap + m_entry_width);
if (active) if (active)
bgcolor = &m_active_bg_color; bgcolor = &m_active_bg_color;

View File

@ -177,7 +177,7 @@ void ClientObjectRef::Register(lua_State *L)
lua_pop(L, 1); // Drop metatable lua_pop(L, 1); // Drop metatable
luaL_openlib(L, 0, methods, 0); // fill methodtable luaL_openlib(L, 0, methods, 0); // fill methodtable
lua_pop(L, 1); // Drop methodtable lua_pop(L, 1); // Drop methodtable
} }
const char ClientObjectRef::className[] = "ClientObjectRef"; const char ClientObjectRef::className[] = "ClientObjectRef";