Skip to content

Commit

Permalink
Update SelectClass.nut
Browse files Browse the repository at this point in the history
should send the other player class ids to the newly joined player
  • Loading branch information
DamianQualshy committed Jul 3, 2024
1 parent 37bbbd5 commit 5dce325
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Homecoming/Scripts/Server-Side/Game/SelectClass.nut
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ SelectClassMessage.bind(function(pid, message){
).serialize();
foreach(Player in Players){
updateClassPacket.send(Player.id, RELIABLE_ORDERED);

local updateOtherClassPacket = UpdateClassMessage(Player.id,
Player.class_id
).serialize();
updateOtherClassPacket.send(pid, RELIABLE_ORDERED);
}

local synchronizeTimePacket = SynchronizeTimeMessage(pid,
Expand Down

0 comments on commit 5dce325

Please sign in to comment.