X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fent_cs.qh;h=8c5259fcdd37b8a788a04448868181231729fcda;hb=8141387a9bf057652453a8d4dc530116cf4cc31a;hp=a1db8340bb983117c194484dd9306a1b39fbf04d;hpb=dae2c5bf0bc7bcbd2d980dd7ba048a09b237c008;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/ent_cs.qh b/qcsrc/common/ent_cs.qh index a1db8340b..8c5259fcd 100644 --- a/qcsrc/common/ent_cs.qh +++ b/qcsrc/common/ent_cs.qh @@ -72,6 +72,7 @@ REGISTER_NET_TEMP(CLIENT_ENTCS) * @param i zero indexed player */ .int frags; + .int wants_join; const int ENTCS_SPEC_PURE = 1; // real spectator const int ENTCS_SPEC_IN_SCOREBOARD = 2; // spectator but still in game (can be in a team) #define entcs_IsSpectating(i) boolean(entcs_GetSpecState(i)) @@ -91,6 +92,15 @@ REGISTER_NET_TEMP(CLIENT_ENTCS) /** * @param i zero indexed player + */ + int entcs_GetWantsJoin(int i) + { + entity e = entcs_receiver(i); + return e.wants_join; + } + + /** + * @param i zero indexed player */ int entcs_GetClientColors(int i) {