diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-28 02:17:35 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-28 02:17:35 +0100 |
commit | 91da5b104a0895578a0a2a7debbfb495e50ef4f4 (patch) | |
tree | b6e5342f6b93875cc9b21384f9bdcada405173c6 /src/gui/char_select.cpp | |
parent | ad9036cb9026091ae0d5b0150513a907e092613f (diff) | |
download | mana-91da5b104a0895578a0a2a7debbfb495e50ef4f4.tar.gz mana-91da5b104a0895578a0a2a7debbfb495e50ef4f4.tar.bz2 mana-91da5b104a0895578a0a2a7debbfb495e50ef4f4.tar.xz mana-91da5b104a0895578a0a2a7debbfb495e50ef4f4.zip |
Some more cleanup
Renamed Skill_Tab to SkillTab and got rid of MAX_SLOT, using maxSlot
instead.
Diffstat (limited to 'src/gui/char_select.cpp')
-rw-r--r-- | src/gui/char_select.cpp | 62 |
1 files changed, 30 insertions, 32 deletions
diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp index a0f7230e..bf885de9 100644 --- a/src/gui/char_select.cpp +++ b/src/gui/char_select.cpp @@ -19,50 +19,48 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include <string> - -#include <guichan/font.hpp> - -#include "button.h" -#include "char_select.h" -#include "confirm_dialog.h" -#include "label.h" -#include "ok_dialog.h" -#include "playerbox.h" -#include "textfield.h" +#include "gui/button.h" +#include "gui/char_select.h" +#include "gui/confirm_dialog.h" +#include "gui/label.h" +#include "gui/ok_dialog.h" +#include "gui/playerbox.h" +#include "gui/textfield.h" #ifdef TMWSERV_SUPPORT -#include "radiobutton.h" -#include "slider.h" +#include "gui/radiobutton.h" +#include "gui/slider.h" -#include "unregisterdialog.h" -#include "changepassworddialog.h" -#include "changeemaildialog.h" +#include "gui/unregisterdialog.h" +#include "gui/changepassworddialog.h" +#include "gui/changeemaildialog.h" -#include "../logindata.h" +#include "logindata.h" -#include "../net/tmwserv/accountserver/account.h" -#include "../net/tmwserv/charserverhandler.h" +#include "net/tmwserv/accountserver/account.h" +#include "net/tmwserv/charserverhandler.h" #else -#include "../net/ea/charserverhandler.h" +#include "net/ea/charserverhandler.h" #endif -#include "widgets/layout.h" +#include "gui/widgets/layout.h" -#include "../game.h" -#include "../localplayer.h" -#include "../main.h" -#include "../units.h" +#include "game.h" +#include "localplayer.h" +#include "main.h" +#include "units.h" -#include "../net/messageout.h" +#include "net/messageout.h" -#include "../resources/colordb.h" +#include "resources/colordb.h" -#include "../utils/gettext.h" -#include "../utils/strprintf.h" -#include "../utils/stringutils.h" +#include "utils/gettext.h" +#include "utils/strprintf.h" +#include "utils/stringutils.h" -#define MAX_SLOT 2 +#include <guichan/font.hpp> + +#include <string> // Defined in main.cpp, used here for setting the char create dialog extern CharServerHandler charServerHandler; @@ -258,7 +256,7 @@ void CharSelectDialog::action(const gcn::ActionEvent &event) { new CharDeleteConfirm(this); } - else if (n_character <= MAX_SLOT) + else if (n_character <= maxSlot) { // Start new character dialog CharCreateDialog *charCreateDialog = |