mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
- The number of possible IMP voices is no lnger limited
- If no IMP voices could be read, IMP creation is not allowed git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8368 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -23,7 +23,7 @@ struct
|
||||
}
|
||||
typedef impVoiceParseData;
|
||||
|
||||
IMP_VOICESET gIMPVoice[NUM_IMP_VOICESETS];
|
||||
std::vector<IMP_VOICESET> gIMPVoice;
|
||||
|
||||
static void XMLCALL
|
||||
impVoicesStartElementHandle( void *userData, const XML_Char *name, const XML_Char **atts )
|
||||
@@ -87,10 +87,9 @@ impVoicesEndElementHandle( void *userData, const XML_Char *name )
|
||||
{
|
||||
pData->curElement = ELEMENT_LIST;
|
||||
|
||||
wcscpy( gIMPVoice[pData->curIndex].szVoiceSetName, pData->curIMPVoice.szVoiceSetName );
|
||||
gIMPVoice[pData->curIndex].voiceset = pData->curIMPVoice.voiceset;
|
||||
gIMPVoice[pData->curIndex].bSex = pData->curIMPVoice.bSex;
|
||||
gIMPVoice[pData->curIndex].exists = TRUE;
|
||||
pData->curIMPVoice.exists = TRUE;
|
||||
|
||||
gIMPVoice.push_back( pData->curIMPVoice );
|
||||
|
||||
++pData->curIndex;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user