summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-09 23:30:36 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-09 23:30:36 +0300
commit22a66542b07a4238ef55e0a4aace09a62f416103 (patch)
treeda72c4875794067199d14885ac268b749a9a79e3 /src/localplayer.cpp
parente3dabb7f0a22c6442dde5f261d3414f9e7369592 (diff)
downloadmanaplus-22a66542b07a4238ef55e0a4aace09a62f416103.tar.gz
manaplus-22a66542b07a4238ef55e0a4aace09a62f416103.tar.bz2
manaplus-22a66542b07a4238ef55e0a4aace09a62f416103.tar.xz
manaplus-22a66542b07a4238ef55e0a4aace09a62f416103.zip
Fix code style.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index b19b1b9af..ff93cdbf1 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -2445,8 +2445,6 @@ void LocalPlayer::crazyMoveA()
// direction command
else if (mMoveProgram[mCrazyMoveState] == 'd')
{
- Uint8 dir = 0;
-
mCrazyMoveState ++;
if (mCrazyMoveState < mMoveProgram.length())
@@ -2492,6 +2490,7 @@ void LocalPlayer::crazyMoveA()
case 'L':
if (Client::limitPackets(PACKET_DIRECTION))
{
+ Uint8 dir = 0;
switch (getDirection())
{
case UP : dir = Being::LEFT; break;
@@ -2507,6 +2506,7 @@ void LocalPlayer::crazyMoveA()
case 'R':
if (Client::limitPackets(PACKET_DIRECTION))
{
+ Uint8 dir = 0;
switch (getDirection())
{
case UP : dir = Being::RIGHT; break;
@@ -2522,6 +2522,7 @@ void LocalPlayer::crazyMoveA()
case 'b':
if (Client::limitPackets(PACKET_DIRECTION))
{
+ Uint8 dir = 0;
switch (getDirection())
{
case UP : dir = Being::DOWN; break;