mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +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:
@@ -2646,6 +2646,30 @@ BOOLEAN SetSectorFlag( INT16 sMapX, INT16 sMapY, UINT8 bMapZ, UINT32 uiFlagToSet
|
||||
{
|
||||
if( uiFlagToSet == SF_ALREADY_VISITED )
|
||||
{
|
||||
|
||||
// HEADROCK HAM 3.5: This is no longer required at all.
|
||||
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
// HEADROCK HAM 3.4: Externalized. Hidden facilities listed on the facility array will be
|
||||
// added to the sector info now, upon the first visit.
|
||||
|
||||
/*for(UINT32 cnt=0; (gFacilityLocations[cnt].uiSectorID >= 0 && gFacilityLocations[cnt].uiSectorID <= 256); cnt++ )
|
||||
{
|
||||
// Does the current record match the current sector?
|
||||
if (gFacilityLocations[cnt].uiSectorID == SECTOR( sMapX, sMapY ))
|
||||
{
|
||||
// Is the current record set to be revealed?
|
||||
if (gFacilityLocations[cnt].fHidden == 1)
|
||||
{
|
||||
// Reveal the facility.
|
||||
SectorInfo[ SECTOR( sMapX, sMapY) ].uiFacilitiesFlags |= (1 << (gFacilityLocations[cnt].uiFacilityType - 1));
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
// HEADROCK HAM 3.4: Externalized.
|
||||
/*
|
||||
// do certain things when particular sectors are visited
|
||||
if ( ( sMapX == TIXA_SECTOR_X ) && ( sMapY == TIXA_SECTOR_Y ) )
|
||||
{
|
||||
@@ -2660,7 +2684,7 @@ BOOLEAN SetSectorFlag( INT16 sMapX, INT16 sMapY, UINT8 bMapZ, UINT32 uiFlagToSet
|
||||
SectorInfo[ SEC_H14 ].uiFacilitiesFlags |= SFCF_GUN_RANGE;
|
||||
SectorInfo[ SEC_I13 ].uiFacilitiesFlags |= SFCF_GUN_RANGE;
|
||||
SectorInfo[ SEC_I14 ].uiFacilitiesFlags |= SFCF_GUN_RANGE;
|
||||
}
|
||||
}*/
|
||||
|
||||
if ( !GetSectorFlagStatus( sMapX, sMapY, bMapZ, SF_ALREADY_VISITED ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user