mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
************************************************************
* Merged Source Code from Development Trunk: Revision 4063 * ************************************************************ - Source Code is merged from: https://81.169.133.124/source/ja2/branches/Wanne/JA2%201.13%20MP - This will be the Source for the Beta 2011 Test git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4064 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -19,6 +19,88 @@ extern BOOLEAN DoesSAMExistHere( INT16 sSectorX, INT16 sSectorY, INT16 sSectorZ,
|
||||
|
||||
|
||||
|
||||
//----------------legion by Jazz
|
||||
|
||||
BOOLEAN IsJumpableWindowPresentAtGridNo( INT32 sGridNo, INT8 direction2 )
|
||||
{
|
||||
STRUCTURE * pStructure;
|
||||
|
||||
pStructure = FindStructure( sGridNo, STRUCTURE_WALLNWINDOW );
|
||||
|
||||
if ( pStructure )
|
||||
{
|
||||
|
||||
if ( ( direction2 == SOUTH || direction2 == NORTH ) && (pStructure->ubWallOrientation == OUTSIDE_TOP_LEFT || pStructure->ubWallOrientation == INSIDE_TOP_LEFT ) && pStructure->fFlags & STRUCTURE_WALLNWINDOW && !(pStructure->fFlags & STRUCTURE_SPECIAL) && ( pStructure->fFlags & STRUCTURE_OPEN ) )
|
||||
{
|
||||
return( TRUE );
|
||||
}
|
||||
|
||||
if ( ( direction2 == EAST || direction2 == WEST ) && ( pStructure->ubWallOrientation == OUTSIDE_TOP_RIGHT || pStructure->ubWallOrientation == INSIDE_TOP_RIGHT ) && pStructure->fFlags & STRUCTURE_WALLNWINDOW && !(pStructure->fFlags & STRUCTURE_SPECIAL) && ( pStructure->fFlags & STRUCTURE_OPEN ) )
|
||||
{
|
||||
return( TRUE );
|
||||
}
|
||||
}
|
||||
|
||||
return( FALSE );
|
||||
}
|
||||
|
||||
|
||||
BOOLEAN IsOknoFencePresentAtGridno( INT32 sGridNo )
|
||||
{
|
||||
|
||||
STRUCTURE * pStructure;
|
||||
|
||||
pStructure = FindStructure( sGridNo, STRUCTURE_WALLNWINDOW );
|
||||
|
||||
if ( pStructure )
|
||||
{
|
||||
if ( pStructure->fFlags & STRUCTURE_WALLNWINDOW && !(pStructure->fFlags & STRUCTURE_SPECIAL) && ( pStructure->fFlags & STRUCTURE_OPEN ) )
|
||||
{
|
||||
return( TRUE );
|
||||
}
|
||||
}
|
||||
|
||||
/* STRUCTURE * pStructure;
|
||||
STRUCTURE * pStructure2;
|
||||
|
||||
pStructure = FindStructure( sGridNo, STRUCTURE_WALLNWINDOW );
|
||||
|
||||
if ( pStructure )
|
||||
{
|
||||
// pStructure2 = FindStructure( sGridNo, STRUCTURE_WALL );
|
||||
// if ( !pStructure2 )
|
||||
// {
|
||||
if ( pStructure->fFlags & STRUCTURE_WALLNWINDOW && !(pStructure->fFlags & STRUCTURE_SPECIAL) && ( pStructure->fFlags & STRUCTURE_OPEN ))
|
||||
{
|
||||
return( TRUE );
|
||||
}
|
||||
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
*/
|
||||
return( FALSE );
|
||||
}
|
||||
|
||||
BOOLEAN IsLegionFencePresentAtGridno( INT32 sGridNo )
|
||||
{
|
||||
STRUCTURE * pStructure;
|
||||
|
||||
pStructure = FindStructure( sGridNo, STRUCTURE_FENCE );
|
||||
|
||||
if ( pStructure )
|
||||
{
|
||||
|
||||
if ( pStructure->fFlags & STRUCTURE_FENCE ) // && (pStructure->fFlags & STRUCTURE_SPECIAL))//&& !(pStructure->fFlags & STRUCTURE_SPECIAL) && ( pStructure->fFlags & STRUCTURE_OPEN ))
|
||||
{
|
||||
return( TRUE );
|
||||
}
|
||||
}
|
||||
return( FALSE );
|
||||
}
|
||||
//-------------------------------------------------------------------------------------
|
||||
|
||||
BOOLEAN IsFencePresentAtGridNo( INT32 sGridNo )
|
||||
{
|
||||
if ( FindStructure( sGridNo, STRUCTURE_ANYFENCE ) != NULL )
|
||||
@@ -567,4 +649,4 @@ BOOLEAN SetOpenableStructureToClosed( INT32 sGridNo, UINT8 ubLevel )
|
||||
}
|
||||
// else leave it as is!
|
||||
return( TRUE );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user