mirror of https://github.com/FWGS/hlsdk-xash3d
Merge pull request #413 from FWGS/sentencewarn
[WIP] Warn mod developer about reaching the GoldSrc sentences limits
This commit is contained in:
commit
6e472815d5
|
@ -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
|
||||||
|
|
|
@ -498,7 +498,7 @@ extern DLL_GLOBAL int g_Language;
|
||||||
|
|
||||||
// sentence groups
|
// sentence groups
|
||||||
#define CBSENTENCENAME_MAX 16
|
#define CBSENTENCENAME_MAX 16
|
||||||
#define CVOXFILESENTENCEMAX 2048 // max number of sentences in game. NOTE: this must match
|
#define CVOXFILESENTENCEMAX 4096 // max number of sentences in game. NOTE: this must match
|
||||||
// CVOXFILESENTENCEMAX in engine\sound.h!!!
|
// CVOXFILESENTENCEMAX in engine\sound.h!!!
|
||||||
|
|
||||||
extern char gszallsentencenames[CVOXFILESENTENCEMAX][CBSENTENCENAME_MAX];
|
extern char gszallsentencenames[CVOXFILESENTENCEMAX][CBSENTENCENAME_MAX];
|
||||||
|
|
Loading…
Reference in New Issue