aboutsummaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-10-18 14:16:18 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-10-18 14:16:18 +0200
commit28a560684b9b9048f8436583805f3f733d7ce829 (patch)
tree7615dddb67a38982d10660c751ef4db229a702f8 /src/gui
parentc1aea404b862256e6bf9316eeb8f32c72b78a4c2 (diff)
downloaddragonfireclient-28a560684b9b9048f8436583805f3f733d7ce829.tar.xz
Added the API additions from waspsaliva
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/cheatMenu.cpp6
-rw-r--r--src/gui/cheatMenu.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/cheatMenu.cpp b/src/gui/cheatMenu.cpp
index b103e6301..6589374b1 100644
--- a/src/gui/cheatMenu.cpp
+++ b/src/gui/cheatMenu.cpp
@@ -48,8 +48,8 @@ void CheatMenu::drawEntry(video::IVideoDriver *driver, std::string name, int num
} else {
bool is_category = entry_type == CHEAT_MENU_ENTRY_TYPE_CATEGORY;
y += m_gap + m_head_height +
- (number + (is_category ? 0 : m_selected_category)) *
- (m_entry_height + m_gap);
+ (number + (is_category ? 0 : m_selected_category)) *
+ (m_entry_height + m_gap);
x += (is_category ? 0 : m_gap + m_entry_width);
if (active)
bgcolor = &m_active_bg_color;
@@ -67,7 +67,7 @@ void CheatMenu::drawEntry(video::IVideoDriver *driver, std::string name, int num
m_font->draw(name.c_str(), fontbounds, *fontcolor, false, false);
}
-void CheatMenu::draw(video::IVideoDriver* driver, bool show_debug)
+void CheatMenu::draw(video::IVideoDriver *driver, bool show_debug)
{
CHEAT_MENU_GET_SCRIPTPTR
diff --git a/src/gui/cheatMenu.h b/src/gui/cheatMenu.h
index 3c4bec471..ea9a9d853 100644
--- a/src/gui/cheatMenu.h
+++ b/src/gui/cheatMenu.h
@@ -22,9 +22,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "irrlichttypes_extrabloated.h"
#include <string>
-#define CHEAT_MENU_GET_SCRIPTPTR \
+#define CHEAT_MENU_GET_SCRIPTPTR \
ClientScripting *script = m_client->getScript(); \
- if (! script || ! script->m_cheats_loaded) \
+ if (!script || !script->m_cheats_loaded) \
return;
class Client;