Skip to content

Commit

Permalink
Merge pull request #62 from SoPra-Team-17/FixSettingFaction
Browse files Browse the repository at this point in the history
fix setting faction for spectator
  • Loading branch information
csacro authored Jun 9, 2020
2 parents c44906e + 410f043 commit 1c6c825
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/LibClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,8 @@ namespace libclient {
: model->aiState.enemyFaction);
} else {
// client is spectator
std::vector<spy::util::UUID> factionList;
std::vector<spy::util::UUID> &factionList = model->aiState.npcFaction;
switch (faction) {
case spy::character::FactionEnum::NEUTRAL:
factionList = model->aiState.npcFaction;
break;
case spy::character::FactionEnum::PLAYER1:
factionList = model->aiState.myFaction;
break;
Expand Down

0 comments on commit 1c6c825

Please sign in to comment.