mirror of
https://github.com/1dot13/source.git
synced 2026-08-26 14:30:26 +02:00
*************************
* HAM 3.6 (by Headrock) * ************************* - Info: Needed GameDir files for HAM 3.6 are not committed yet to the SVN GameDir. Will do that in the next few days - For more infos on HAM 3.6 check out: http://www.ja-galaxy-forum.com/board/ubbthreads.php?ubb=showflat&Number=244808&page=0&fpart=1 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3323 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+21
-4
@@ -15,6 +15,9 @@
|
||||
#include "cursors.h"
|
||||
#include "email.h"
|
||||
#include "text.h"
|
||||
// HEADROCK PROFEX: This is required to display the proper facial image.
|
||||
#include "Soldier Profile.h"
|
||||
#include "GameSettings.h"
|
||||
#endif
|
||||
|
||||
#define TOP_X LAPTOP_SCREEN_UL_X
|
||||
@@ -1759,16 +1762,30 @@ BOOLEAN HandleSpecialTerroristFile( INT32 iFileNumber, STR sPictureName )
|
||||
// show picture
|
||||
if( ( giFilesPage == 0 ) && ( iCounter == 5 ) )
|
||||
{
|
||||
if( usProfileIdsForTerroristFiles[ iFileNumber + 1 ] < 100 )
|
||||
if (gGameExternalOptions.fReadProfileDataFromXML)
|
||||
{
|
||||
sprintf(sTemp, "%s%02d.sti", "FACES\\BIGFACES\\", usProfileIdsForTerroristFiles[ iFileNumber + 1 ]);
|
||||
// HEADROCK PROFEX: Do not read direct profile number, instead, look inside the profile for a ubFaceIndex value.
|
||||
if( usProfileIdsForTerroristFiles[ iFileNumber + 1 ] < 100 )
|
||||
{
|
||||
sprintf(sTemp, "%s%02d.sti", "FACES\\BIGFACES\\", gMercProfiles[ usProfileIdsForTerroristFiles[ iFileNumber + 1 ] ].ubFaceIndex);
|
||||
}
|
||||
else
|
||||
{
|
||||
sprintf(sTemp, "%s%03d.sti", "FACES\\BIGFACES\\", gMercProfiles[ usProfileIdsForTerroristFiles[ iFileNumber + 1 ] ].ubFaceIndex);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
sprintf(sTemp, "%s%03d.sti", "FACES\\BIGFACES\\", usProfileIdsForTerroristFiles[ iFileNumber + 1 ]);
|
||||
if( usProfileIdsForTerroristFiles[ iFileNumber + 1 ] < 100 )
|
||||
{
|
||||
sprintf(sTemp, "%s%02d.sti", "FACES\\BIGFACES\\", usProfileIdsForTerroristFiles[ iFileNumber + 1 ]);
|
||||
}
|
||||
else
|
||||
{
|
||||
sprintf(sTemp, "%s%03d.sti", "FACES\\BIGFACES\\", usProfileIdsForTerroristFiles[ iFileNumber + 1 ]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
VObjectDesc.fCreateFlags=VOBJECT_CREATE_FROMFILE;
|
||||
FilenameForBPP(sTemp, VObjectDesc.ImageFile);
|
||||
CHECKF(AddVideoObject(&VObjectDesc, &uiPicture));
|
||||
|
||||
Reference in New Issue
Block a user