mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 05:04:17 +00:00
server: warn mod developer about reaching the GoldSrc sentences limits
This commit is contained in:
parent
9273b58cfd
commit
ecdcabfe99
@ -1341,6 +1341,15 @@ void SENTENCEG_Init()
|
|||||||
|
|
||||||
g_engfuncs.pfnFreeFile( pMemFile );
|
g_engfuncs.pfnFreeFile( pMemFile );
|
||||||
|
|
||||||
|
if( gcallsentences >= 2048 )
|
||||||
|
{
|
||||||
|
ALERT( at_warning, "NOTE: this mod might not work properly under GoldSource (post-anniversary update) engine: more than 2048 sentences\n" );
|
||||||
|
}
|
||||||
|
else if( gcallsentences >= 1536 )
|
||||||
|
{
|
||||||
|
ALERT( at_warning, "NOTE: this mod might not work properly under GoldSource (pre-anniversary update) engine: more than 1536 sentences\n" );
|
||||||
|
}
|
||||||
|
|
||||||
fSentencesInit = TRUE;
|
fSentencesInit = TRUE;
|
||||||
|
|
||||||
// init lru lists
|
// init lru lists
|
||||||
|
Loading…
x
Reference in New Issue
Block a user