#pragma once
-#ifdef SVQC
-// copies a string to a tempstring (so one can strunzone it)
-string strcat1(string s) = #115; // FRIK_FILE
-#endif
-
#if defined(CSQC)
const int REPLICATEVARS_SEND_ALL = -1; // sync all cvars with the server (init)
const int REPLICATEVARS_CHECK = 0; // check if any cvar has changed and sync it with the server
{ strfree(field); }, \
{ \
/* also initialize to the default value of func when requesting cvars */ \
- string s = func(this, strcat1(field)); \
+ string s = func(this, strcat(field)); \
if (s != field) \
{ \
strcpy(field, s); \
if (f >= 0) // also initialize to the fitting value for "" when sending cvars out
if (thisname == name)
{
- string s = func(this, strcat1(store.(field)));
+ string s = func(this, strcat(store.(field)));
if (s != store.(field))
{
strcpy(store.(field), s);
LOG_INFO("Warning: requesting cvar values is deprecated. Client should send them automatically using REPLICATE.\n");
if (f > 0)
- s = strcat1(argv(f));
+ s = strcat(argv(f));
get_cvars_f = f;
get_cvars_s = s;
ban_ip1 = substring(s, 0, i1); // 8
ban_ip2 = substring(s, 0, i2); // 16
ban_ip3 = substring(s, 0, i3); // 24
- ban_ip4 = strcat1(s); // 32
+ ban_ip4 = strcat(s); // 32
return true;
LABEL(ipv6)
switch(masksize)
{
case 1:
- ip = strcat1(ban_ip1);
+ ip = strcat(ban_ip1);
break;
case 2:
- ip = strcat1(ban_ip2);
+ ip = strcat(ban_ip2);
break;
case 3:
- ip = strcat1(ban_ip3);
+ ip = strcat(ban_ip3);
break;
case 4:
default:
- ip = strcat1(ban_ip4);
+ ip = strcat(ban_ip4);
break;
}
if(ban_idfp)
- id = strcat1(ban_idfp);
+ id = strcat(ban_idfp);
else
id = string_null;
{
recordtime = race_checkpoint_records[cp];
float myrecordtime = e.race_checkpoint_record[cp];
- recordholder = strcat1(race_checkpoint_recordholders[cp]); // make a tempstring copy, as we'll possibly strunzone it!
+ recordholder = strcat(race_checkpoint_recordholders[cp]); // make a tempstring copy, as we'll possibly strunzone it!
if(recordholder == e.netname)
recordholder = "";