mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
Move ExecuteAdditionalCharacterDialogue defintion before the first call
This allows us to declare it static
This commit is contained in:
@@ -462,6 +462,22 @@ void HandleDialogueUIAdjustments( )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Flugente: additional dialogue
|
||||||
|
extern void LuaHandleAdditionalDialogue(INT16 sSectorX, INT16 sSectorY, INT8 bSectorZ, UINT8 ubProfile, INT32 iFaceIndex, UINT16 usEventNr, UINT32 aData1, UINT32 aData2, UINT32 aData3);
|
||||||
|
|
||||||
|
BOOLEAN ExecuteAdditionalCharacterDialogue(UINT8 ubProfile, INT32 iFaceIndex, UINT16 usEventNr, UINT32 aData1, UINT32 aData2, UINT32 aData3)
|
||||||
|
{
|
||||||
|
SOLDIERTYPE* pSoldier = FindSoldierByProfileID(ubProfile, TRUE);
|
||||||
|
|
||||||
|
if ( !pSoldier )
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
// call Lua script on whether we can play something here, and get text and sound file
|
||||||
|
LuaHandleAdditionalDialogue(pSoldier->sSectorX, pSoldier->sSectorY, pSoldier->bSectorZ, ubProfile, iFaceIndex, usEventNr, aData1, aData2, aData3);
|
||||||
|
|
||||||
|
return(TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void HandleDialogue( )
|
void HandleDialogue( )
|
||||||
{
|
{
|
||||||
@@ -2176,21 +2192,6 @@ BOOLEAN ExecuteSnitchCharacterDialogue( UINT8 ubCharacterNum, UINT16 usQuoteNum,
|
|||||||
return( TRUE );
|
return( TRUE );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Flugente: additional dialogue
|
|
||||||
extern void LuaHandleAdditionalDialogue( INT16 sSectorX, INT16 sSectorY, INT8 bSectorZ, UINT8 ubProfile, INT32 iFaceIndex, UINT16 usEventNr, UINT32 aData1, UINT32 aData2, UINT32 aData3 );
|
|
||||||
|
|
||||||
BOOLEAN ExecuteAdditionalCharacterDialogue( UINT8 ubProfile, INT32 iFaceIndex, UINT16 usEventNr, UINT32 aData1, UINT32 aData2, UINT32 aData3 )
|
|
||||||
{
|
|
||||||
SOLDIERTYPE *pSoldier = FindSoldierByProfileID( ubProfile, TRUE );
|
|
||||||
|
|
||||||
if ( !pSoldier )
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
// call Lua script on whether we can play something here, and get text and sound file
|
|
||||||
LuaHandleAdditionalDialogue( pSoldier->sSectorX, pSoldier->sSectorY, pSoldier->bSectorZ, ubProfile, iFaceIndex, usEventNr, aData1, aData2, aData3 );
|
|
||||||
|
|
||||||
return( TRUE );
|
|
||||||
}
|
|
||||||
|
|
||||||
void SetQuoteStr( STR16 aStr )
|
void SetQuoteStr( STR16 aStr )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user