Skip to content

Commit

Permalink
Merge pull request #403 from matt-alton/master
Browse files Browse the repository at this point in the history
Use playerid in demo name. Fixes #401
  • Loading branch information
proxict authored Sep 19, 2023
2 parents 1348e9f + f7d5cfd commit 2226b62
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 @@ -1213,7 +1213,7 @@ void SV_ClientEnterWorld( client_t *client, usercmd_t *cmd ) {
// call the game begin function
ClientBegin( clientNum );

SV_SApiSteamIDToString(client->steamid, 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 2226b62

Please sign in to comment.