Skip to content

Commit

Permalink
Fix use of wrong player identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
proxict authored Sep 19, 2023
1 parent 611c652 commit f7d5cfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sv_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ void SV_ClientEnterWorld( client_t *client, usercmd_t *cmd ) {
// call the game begin function
ClientBegin( clientNum );

SV_SApiSteamIDToString(client->playerid, psti, sizeof(psti));
SV_SApiSteamIDToString(client->playerid ? client->playerid : client->steamid, psti, sizeof(psti));

//It was never intended to make a new demo for each fast_restart.
//SV_SpawnServer() stops the demo and cleans the name which did not happen here which resulted in strange naming bug
Expand Down

0 comments on commit f7d5cfd

Please sign in to comment.