summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-11-05 01:09:30 +0300
committerAndrei Karas <akaras@inbox.ru>2018-11-05 01:09:30 +0300
commit485e9bb12bf5dda318ac0ccbf1d2a1cd86cf8c70 (patch)
treece74f5a2fb646439cb58c2d85bc67ff29b70dbb7 /src/being/localplayer.cpp
parent33f4a30373c8978d4e4f29422a5b0132fd14a0ec (diff)
downloadplus-485e9bb12bf5dda318ac0ccbf1d2a1cd86cf8c70.tar.gz
plus-485e9bb12bf5dda318ac0ccbf1d2a1cd86cf8c70.tar.bz2
plus-485e9bb12bf5dda318ac0ccbf1d2a1cd86cf8c70.tar.xz
plus-485e9bb12bf5dda318ac0ccbf1d2a1cd86cf8c70.zip
Fix code style.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index 54c95bd85..d344926fa 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -667,7 +667,8 @@ void LocalPlayer::startWalking(const unsigned char dir)
return;
}
- int dx = 0, dy = 0;
+ int dx = 0;
+ int dy = 0;
if ((dir & BeingDirection::UP) != 0)
dy--;
if ((dir & BeingDirection::DOWN) != 0)
@@ -1579,7 +1580,10 @@ bool LocalPlayer::pickUpItems(int pickUpType)
if (pickUpType == 0)
return status;
- int x1, y1, x2, y2;
+ int x1;
+ int y1;
+ int x2;
+ int y2;
switch (pickUpType)
{
case 1:
@@ -1662,7 +1666,8 @@ bool LocalPlayer::pickUpItems(int pickUpType)
void LocalPlayer::moveByDirection(const unsigned char dir)
{
- int dx = 0, dy = 0;
+ int dx = 0;
+ int dy = 0;
if ((dir & BeingDirection::UP) != 0)
dy--;
if ((dir & BeingDirection::DOWN) != 0)