X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=blobdiff_plain;f=Source%2FObjects%2FPerson.hpp;h=3c415a5bc829664d938e1fccdc9be6c69187a349;hp=22c76eb17c4e82fd9038352c5e35ad2b022067b4;hb=c5a14dfbeaae2f6085b69a7f93e7d6d91b7349d3;hpb=43b29d6c2092964efbba5ee4d5f4a559d86bc508 diff --git a/Source/Objects/Person.hpp b/Source/Objects/Person.hpp index 22c76eb..3c415a5 100644 --- a/Source/Objects/Person.hpp +++ b/Source/Objects/Person.hpp @@ -407,6 +407,7 @@ public: bool hasWeapon() { return (weaponactive != -1); } bool isPlayerControlled() { return (aitype == playercontrolled); } bool isPlayerFriend() { return isplayerfriend; } + bool isPlayerTeam() { return isPlayerControlled() || isPlayerFriend(); } }; const int maxplayers = 10;