mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 13:14:51 +00:00
Merge branch 'master' into half-screwed
This commit is contained in:
commit
75ce27c2d3
@ -431,13 +431,15 @@ void Host_Say( edict_t *pEntity, int teamonly )
|
||||
{
|
||||
if( CMD_ARGC() >= 2 )
|
||||
{
|
||||
sprintf( szTemp, "%s %s", (char *)pcmd, (char *)CMD_ARGS() );
|
||||
_snprintf( szTemp, sizeof(szTemp) - 1, "%s %s", (char *)pcmd, (char *)CMD_ARGS() );
|
||||
}
|
||||
else
|
||||
{
|
||||
// Just a one word command, use the first word...sigh
|
||||
sprintf( szTemp, "%s", (char *)pcmd );
|
||||
strncpy( szTemp, (char *)pcmd, sizeof(szTemp) - 1 );
|
||||
}
|
||||
szTemp[sizeof(szTemp) - 1] = '\0';
|
||||
|
||||
p = szTemp;
|
||||
}
|
||||
|
||||
@ -466,11 +468,12 @@ void Host_Say( edict_t *pEntity, int teamonly )
|
||||
|
||||
// turn on color set 2 (color on, no sound)
|
||||
if( player->IsObserver() && ( teamonly ) )
|
||||
sprintf( text, "[%d:%d %s] %c(SPEC) %s: ", stTimeNow->tm_hour, stTimeNow->tm_min, dd, 2, STRING( pEntity->v.netname ) );
|
||||
_snprintf( text, sizeof(text) - 1, "[%d:%d %s] %c(SPEC) %s: ", stTimeNow->tm_hour, stTimeNow->tm_min, dd, 2, STRING( pEntity->v.netname ) );
|
||||
else if( teamonly )
|
||||
sprintf( text, "[%d:%d %s] %c(TEAM) %s: ", stTimeNow->tm_hour, stTimeNow->tm_min, dd, 2, STRING( pEntity->v.netname ) );
|
||||
_snprintf( text, sizeof(text) - 1, "[%d:%d %s] %c(TEAM) %s: ", stTimeNow->tm_hour, stTimeNow->tm_min, dd, 2, STRING( pEntity->v.netname ) );
|
||||
else
|
||||
sprintf( text, "[%d:%d %s] %c%s: ", stTimeNow->tm_hour, stTimeNow->tm_min, dd, 2, STRING( pEntity->v.netname ) );
|
||||
_snprintf( text, sizeof(text) - 1, "[%d:%d %s] %c%s: ", stTimeNow->tm_hour, stTimeNow->tm_min, dd, 2, STRING( pEntity->v.netname ) );
|
||||
text[sizeof(text) - 1] = '\0';
|
||||
|
||||
j = sizeof( text ) - 2 - strlen( text ); // -2 for /n and null terminator
|
||||
if( (int)strlen( p ) > j )
|
||||
|
2
wscript
2
wscript
@ -175,7 +175,7 @@ def configure(conf):
|
||||
conf.env.append_unique('CXXFLAGS', ['-Wno-invalid-offsetof', '-fno-rtti', '-fno-exceptions'])
|
||||
|
||||
# strip lib from pattern
|
||||
if conf.env.DEST_OS in ['linux', 'darwin']:
|
||||
if conf.env.DEST_OS not in ['android']:
|
||||
if conf.env.cshlib_PATTERN.startswith('lib'):
|
||||
conf.env.cshlib_PATTERN = conf.env.cshlib_PATTERN[3:]
|
||||
if conf.env.cxxshlib_PATTERN.startswith('lib'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user