• R/O
  • SSH

zandronum-sandbox-stable: Commit


Commit MetaInfo

Revisión2596040ceab91d3021626d7506263eedc1756202 (tree)
Tiempo2022-06-08 23:08:39
AutorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Fixed: PLAYERINFO_TEAM didn't return 255 if the player wasn't on team like it does in GZDoom.

Cambiar Resumen

Diferencia incremental

diff -r 948001b54d6d -r 2596040ceab9 src/p_acs.cpp
--- a/src/p_acs.cpp Mon May 23 21:07:23 2022 -0400
+++ b/src/p_acs.cpp Wed Jun 08 10:08:39 2022 -0400
@@ -11432,7 +11432,8 @@
1143211432 switch (STACK(1))
1143311433 {
1143411434 // [CW] PLAYERINFO_TEAM needs to use the one in player_t rather than the one in userinfo_t.
11435- case PLAYERINFO_TEAM: STACK(2) = players[STACK( 2 )].Team; break;
11435+ // [AK] Return TEAM_None if the player isn't on a team.
11436+ case PLAYERINFO_TEAM: STACK(2) = pl->bOnTeam ? pl->Team : TEAM_None; break;
1143611437 case PLAYERINFO_AIMDIST: STACK(2) = userinfo->GetAimDist(); break;
1143711438 case PLAYERINFO_COLOR: STACK(2) = userinfo->GetColor(); break;
1143811439 case PLAYERINFO_GENDER: STACK(2) = userinfo->GetGender(); break;
Show on old repository browser