o3de / o3de-multiplayersample

Multiplayer sample project for the Open 3D Engine
https://o3de.org
Other
82 stars 59 forks source link

Fixed crash in unified launcher when showing the scoreboard #461

Closed cgalvan closed 1 year ago

cgalvan commented 1 year ago

Fixed crash when using the unified launcher for MPS when attempting to show the scoreboard (by pressing TAB or at the end of a round). This was because the MatchPlayerCoinsComponent was checking the net entity role to determine when it should register its interface, when it should really be checking the AZ_TRAIT_CLIENT define, which will be true for both the normal client and the unified client.

Tested both the unified and game launchers and verified the scoreboard works properly for both.