summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-20 17:42:43 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-20 18:56:15 +0300
commitd9994f114b1febf4c075d77c0fb3e7a44e510e20 (patch)
tree00eeae0b23ab620363dedcce448af25325b1381f /src/localplayer.cpp
parentd65f51b41a9d84c501bb25bc3849ffd8446fb2e6 (diff)
downloadmanaverse-d9994f114b1febf4c075d77c0fb3e7a44e510e20.tar.gz
manaverse-d9994f114b1febf4c075d77c0fb3e7a44e510e20.tar.bz2
manaverse-d9994f114b1febf4c075d77c0fb3e7a44e510e20.tar.xz
manaverse-d9994f114b1febf4c075d77c0fb3e7a44e510e20.zip
Fix code style and some minor issues.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 3f08ef643..ede9f412c 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -49,7 +49,6 @@
#include "gui/sdlfont.h"
#include "gui/skilldialog.h"
#include "gui/socialwindow.h"
-#include "gui/theme.h"
#include "gui/viewport.h"
#include "gui/widgets/whispertab.h"
@@ -1903,7 +1902,7 @@ void LocalPlayer::invertDirection()
&LocalPlayer::getInvertDirectionString, 0, false);
}
-static const char *invertDirectionStrings[] =
+static const char *const invertDirectionStrings[] =
{
N_("(D) default moves"),
N_("(I) invert moves"),
@@ -1953,7 +1952,7 @@ void LocalPlayer::changeMoveToTargetType()
&LocalPlayer::getMoveToTargetTypeString);
}
-static const char *moveToTargetTypeStrings[] =
+static const char *const moveToTargetTypeStrings[] =
{
N_("(0) default moves to target"),
N_("(1) moves to target in distance 1"),
@@ -1981,7 +1980,7 @@ void LocalPlayer::changeFollowMode()
&LocalPlayer::getFollowModeString);
}
-static const char *followModeStrings[] =
+static const char *const followModeStrings[] =
{
N_("(D) default follow"),
N_("(R) relative follow"),
@@ -2027,7 +2026,7 @@ void LocalPlayer::changeAttackType()
&LocalPlayer::getAttackTypeString);
}
-static const char *attackTypeStrings[] =
+static const char *const attackTypeStrings[] =
{
N_("(D) default attack"),
N_("(G) go and attack"),
@@ -2082,7 +2081,7 @@ void LocalPlayer::changePickUpType()
&LocalPlayer::getPickUpTypeString);
}
-static const char *pickUpTypeStrings[] =
+static const char *const pickUpTypeStrings[] =
{
N_("(S) small pick up 1x1 cells"),
N_("(D) default pick up 2x1 cells"),
@@ -2102,7 +2101,7 @@ std::string LocalPlayer::getPickUpTypeString()
const unsigned debugPathSize = 5;
-static const char *debugPathStrings[] =
+static const char *const debugPathStrings[] =
{
N_("(N) normal map view"),
N_("(D) debug map view"),
@@ -2126,7 +2125,7 @@ void LocalPlayer::switchMagicAttack()
&LocalPlayer::getMagicAttackString);
}
-static const char *magicAttackStrings[] =
+static const char *const magicAttackStrings[] =
{
N_("(f) use #flar for magic attack"),
N_("(c) use #chiza for magic attack"),
@@ -2150,7 +2149,7 @@ void LocalPlayer::switchPvpAttack()
&LocalPlayer::getPvpAttackString);
}
-static const char *pvpAttackStrings[] =
+static const char *const pvpAttackStrings[] =
{
N_("(a) attack all players"),
N_("(f) attack all except friends"),
@@ -2173,7 +2172,7 @@ void LocalPlayer::changeImitationMode()
&LocalPlayer::getImitationModeString);
}
-static const char *imitationModeStrings[] =
+static const char *const imitationModeStrings[] =
{
N_("(D) default imitation"),
N_("(O) outfits imitation"),
@@ -2264,7 +2263,7 @@ void LocalPlayer::switchGameModifiers()
debugMsg(str.substr(4));
}
-static const char *gameModifiersStrings[] =
+static const char *const gameModifiersStrings[] =
{
_("Game modifiers are enabled"),
_("Game modifiers are disabled"),