Skip to content

Commit

Permalink
Another attempt to fix travis build
Browse files Browse the repository at this point in the history
Signed-off-by: Xfurry <xfurry.cmangos@outlook.com>
  • Loading branch information
xfurry committed Jan 8, 2018
1 parent 29d5b90 commit 7fe6e58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Battlefield/Battlefield.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ void Battlefield::QuestCreditTeam(uint32 credit, Team team, WorldObject* source,
if (!plr)
continue;

if (plr->GetTeam() != team || source && radius > 0.0f && source->GetDistance2d(plr->GetPositionX(), plr->GetPositionY()) > radius)
if ((plr->GetTeam() != team || source) && radius > 0.0f && source->GetDistance2d(plr->GetPositionX(), plr->GetPositionY()) > radius)
continue;

plr->KilledMonsterCredit(credit);
Expand Down
1 change: 1 addition & 0 deletions src/game/Battlefield/BattlefieldHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "WorldPacket.h"
#include "Log.h"
#include "Server/Opcodes.h"
#include "Entities/Player.h"

/**
Invite a player to join and teleport to a battlefield
Expand Down

0 comments on commit 7fe6e58

Please sign in to comment.