From 485e9bb12bf5dda318ac0ccbf1d2a1cd86cf8c70 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 5 Nov 2018 01:09:30 +0300 Subject: Fix code style. --- src/being/localplayer.cpp | 11 ++++++++--- src/being/playerinfo.cpp | 3 ++- 2 files changed, 10 insertions(+), 4 deletions(-) (limited to 'src/being') 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) diff --git a/src/being/playerinfo.cpp b/src/being/playerinfo.cpp index 15c2eb939..32a39e0c7 100644 --- a/src/being/playerinfo.cpp +++ b/src/being/playerinfo.cpp @@ -173,7 +173,8 @@ int getStatEffective(const AttributesT id) const std::pair getStatExperience(const AttributesT id) { const StatMap::const_iterator it = mData.mStats.find(id); - int a, b; + int a; + int b; if (it != mData.mStats.end()) { a = it->second.exp; -- cgit v1.2.3-70-g09d2