Skip to content

Commit

Permalink
Added missing player retranslation
Browse files Browse the repository at this point in the history
Play-scoped team changing function.
  • Loading branch information
Boondorl authored and RicardoLuis0 committed May 26, 2024
1 parent 53270f0 commit ab20b75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/gamedata/teaminfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ bool FTeam::ChangeTeam(unsigned int pNum, unsigned int newTeam)
return false;

players[pNum].userinfo.TeamChanged(newTeam);
R_BuildPlayerTranslation(pNum);
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/actors/player/player.zs
Original file line number Diff line number Diff line change
Expand Up @@ -2989,7 +2989,7 @@ struct Team native
native String mName;

native static bool IsValid(uint teamIndex);
native static bool ChangeTeam(uint playerNumber, uint newTeamIndex);
native play static bool ChangeTeam(uint playerNumber, uint newTeamIndex);

native Color GetPlayerColor() const;
native int GetTextColor() const;
Expand Down

0 comments on commit ab20b75

Please sign in to comment.