From: Lyberta Date: Mon, 31 Jul 2017 00:20:15 +0000 (+0300) Subject: Fixed int/float mismatch in teamplay.qh. X-Git-Tag: xonotic-v0.8.5~2482^2~15 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=509938691440495a3d81fdcfb32b59b86b1ec9f2;p=xonotic%2Fxonotic-data.pk3dir.git Fixed int/float mismatch in teamplay.qh. --- diff --git a/qcsrc/server/teamplay.qh b/qcsrc/server/teamplay.qh index 6d6ccbe2b..9c0b490b6 100644 --- a/qcsrc/server/teamplay.qh +++ b/qcsrc/server/teamplay.qh @@ -70,7 +70,7 @@ void GetTeamCounts(entity ignore); /// \return True if first team is smaller than the second one, false otherwise. /// \note This function assumes that CheckAllowedTeams and GetTeamCounts have /// been called. -bool IsTeamSmallerThanTeam(float teama, float teamb, entity e, bool usescore); +bool IsTeamSmallerThanTeam(int teama, int teamb, entity e, bool usescore); /// \brief Returns whether one team is equal to the other. /// \param[in] teama First team. @@ -80,7 +80,7 @@ bool IsTeamSmallerThanTeam(float teama, float teamb, entity e, bool usescore); /// \return True if first team is equal to the second one, false otherwise. /// \note This function assumes that CheckAllowedTeams and GetTeamCounts have /// been called. -bool IsTeamEqualToTeam(float teama, float teamb, entity e, bool usescore); +bool IsTeamEqualToTeam(int teama, int teamb, entity e, bool usescore); /// \brief Returns the bitmask of the best teams for the player to join. /// \param[in] player Player to check.