From 2454c290b84e04bd0321ca94e0be8c8dc7eedbe8 Mon Sep 17 00:00:00 2001 From: Spp Date: Wed, 7 Apr 2010 23:25:02 +0200 Subject: Code Style (game + scripts only): "==" --> " == " (when needed) --HG-- branch : trunk --- src/game/Level1.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/game/Level1.cpp') diff --git a/src/game/Level1.cpp b/src/game/Level1.cpp index 95c005feb5d..5f8198e5a87 100644 --- a/src/game/Level1.cpp +++ b/src/game/Level1.cpp @@ -2254,7 +2254,7 @@ bool ChatHandler::HandleLookupAreaCommand(const char* args) loc = 0; for (; loc < MAX_LOCALE; ++loc) { - if (loc==GetSessionDbcLocale ()) + if (loc == GetSessionDbcLocale ()) continue; name = areaEntry->area_name[loc]; @@ -2460,7 +2460,7 @@ bool ChatHandler::HandleTeleNameCommand(const char * args) std::string chrNameLink = playerLink(target_name); - if (target->IsBeingTeleported()==true) + if (target->IsBeingTeleported() == true) { PSendSysMessage(LANG_IS_TELEPORTED, chrNameLink.c_str()); SetSentErrorMessage(true); @@ -2623,7 +2623,7 @@ bool ChatHandler::HandleGroupgoCommand(const char* args) { Player *pl = itr->getSource(); - if (!pl || pl==m_session->GetPlayer() || !pl->GetSession()) + if (!pl || pl == m_session->GetPlayer() || !pl->GetSession()) continue; // check online security @@ -2632,7 +2632,7 @@ bool ChatHandler::HandleGroupgoCommand(const char* args) std::string plNameLink = GetNameLink(pl); - if (pl->IsBeingTeleported()==true) + if (pl->IsBeingTeleported() == true) { PSendSysMessage(LANG_IS_TELEPORTED, plNameLink.c_str()); SetSentErrorMessage(true); @@ -2835,7 +2835,7 @@ bool ChatHandler::HandleGoZoneXYCommand(const char* args) float y = (float)atof(py); // prevent accept wrong numeric args - if ((x==0.0f && *px!='0') || (y==0.0f && *py!='0')) + if ((x == 0.0f && *px!='0') || (y == 0.0f && *py!='0')) return false; uint32 areaid = cAreaId ? (uint32)atoi(cAreaId) : _player->GetZoneId(); -- cgit v1.2.3