mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: client: simplify strings operation.
This commit is contained in:
committed by
Alibek Omarov
parent
0d5cd89144
commit
f4fb8b4ac2
@@ -1727,7 +1727,8 @@ static int GAME_EXPORT pfnClientCmd( const char *szCmdString )
|
||||
else
|
||||
{
|
||||
// will exec later
|
||||
Q_strncat( host.deferred_cmd, va( "%s\n", szCmdString ), sizeof( host.deferred_cmd ));
|
||||
Q_strncat( host.deferred_cmd, szCmdString, sizeof( host.deferred_cmd ));
|
||||
Q_strncat( host.deferred_cmd, "\n", sizeof( host.deferred_cmd ));
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user