MCPcopy Create free account
hub / github.com/JACoders/OpenJK / SV_GetStringEdString

Function SV_GetStringEdString

codemp/server/sv_ccmds.cpp:39–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37*/
38
39const char *SV_GetStringEdString(char *refSection, char *refName)
40{
41 //Well, it would've been lovely doing it the above way, but it would mean mixing
42 //languages for the client depending on what the server is. So we'll mark this as
43 //a stringed reference with @@@ and send the refname to the client, and when it goes
44 //to print it will get scanned for the stringed reference indication and dealt with
45 //properly.
46 static char text[1024]={0};
47 Com_sprintf(text, sizeof(text), "@@@%s", refName);
48 return text;
49}
50
51/*
52==================

Callers 7

SV_DirectConnectFunction · 0.85
SV_Disconnect_fFunction · 0.85
SV_KickBlankPlayersFunction · 0.85
SV_Kick_fFunction · 0.85
SV_KickBots_fFunction · 0.85
SV_KickAll_fFunction · 0.85
SV_KickNum_fFunction · 0.85

Calls 1

Com_sprintfFunction · 0.50

Tested by

no test coverage detected