aboutsummaryrefslogtreecommitdiff
path: root/src/gui/cheatMenu.cpp
diff options
context:
space:
mode:
authorJosiah <josiah_vanderzee@mediacombb.net>2020-10-21 11:47:38 -0500
committerJosiah <josiah_vanderzee@mediacombb.net>2020-10-21 11:47:38 -0500
commit7aff09ab232704b0abc8d95d107c07f67f581e2e (patch)
tree0acae7df69e01866f1fee405e3f2a1a76e2a6963 /src/gui/cheatMenu.cpp
parent1ef72ad9cccd3191b24c064aebe7849a5be6e2e7 (diff)
downloaddragonfireclient-7aff09ab232704b0abc8d95d107c07f67f581e2e.tar.xz
Fix overindent!
Diffstat (limited to 'src/gui/cheatMenu.cpp')
-rw-r--r--src/gui/cheatMenu.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/cheatMenu.cpp b/src/gui/cheatMenu.cpp
index 440d3abf6..0afe1051a 100644
--- a/src/gui/cheatMenu.cpp
+++ b/src/gui/cheatMenu.cpp
@@ -39,8 +39,8 @@ CheatMenu::CheatMenu(Client *client) : m_client(client)
}
void CheatMenu::drawEntry(video::IVideoDriver *driver, std::string name,
- std::size_t column_align_index, std::size_t cheat_entry_index,
- bool is_selected, bool is_enabled, CheatMenuEntryType entry_type)
+ std::size_t column_align_index, std::size_t cheat_entry_index,
+ bool is_selected, bool is_enabled, CheatMenuEntryType entry_type)
{
int x = m_gap, y = m_gap, width = m_entry_width, height = m_entry_height;
video::SColor *bgcolor = &m_bg_color, *fontcolor = &m_font_color;
@@ -89,19 +89,19 @@ void CheatMenu::draw(video::IVideoDriver *driver, bool show_debug)
// Draw menu header if debug info is not being drawn.
if (!show_debug)
drawEntry(driver, "Dragonfireclient", 0, 0, false, false,
- CHEAT_MENU_ENTRY_TYPE_HEAD);
+ CHEAT_MENU_ENTRY_TYPE_HEAD);
int category_count = 0;
for (const auto &menu_item : m_cheat_categories) {
bool is_selected = category_count == m_selected_category;
drawEntry(driver, menu_item.m_name, category_count, 0, is_selected,
- false, CHEAT_MENU_ENTRY_TYPE_CATEGORY);
+ false, CHEAT_MENU_ENTRY_TYPE_CATEGORY);
if (is_selected && m_cheat_layer) {
int cheat_count = 0;
for (const auto &sub_menu_item : menu_item.m_cheats) {
drawEntry(driver, sub_menu_item.m_name, category_count, cheat_count,
- cheat_count == m_selected_cheat,
- sub_menu_item.is_enabled());
+ cheat_count == m_selected_cheat,
+ sub_menu_item.is_enabled());
cheat_count++;
}
}