mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
1. PItems are now variable, from 3-20 and can be set in JA2Options.ini via NUM_P_ITEMS
2. USE_XML_TILESETS moved from JA2.ini to JA2Options.ini 3. New Feature - Ctrl+Click on an item with an item in hand to auto-attach/merge them. Attach works with stacks. Merge only works on single items, for now at least. 4. New Feature - To accompany Quiet Training, there are now Quiet Repairing and Quiet Doctoring options. 5. Bugfix - inseparable attachments of attachments were getting lost again when using ctrl+f/the map screen button to remove attachments 6. Bugfix - INT8 overflow error causing vehicle repair to actually lower its status 7. GasMask tag in items.xml can now be applied to helmets as well as face items. 8. Bugfix - AI code was referencing hard coded GASMASK item number instead of looking for the tag 9. Bugfix - "break;" was removed in Explosion Control.cpp, thereby causing mustard gas to deal out fire damage. (Not sure if this was deliberate? But the new implementation differs from the JA2 standard, so it should be added to JA2Options.ini at least) git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5320 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+22
-22
@@ -130,7 +130,7 @@ BOOLEAN TypeExistsInLevel( LEVELNODE *pStartNode, UINT32 fType, UINT16 *pusIndex
|
||||
while( pStartNode != NULL )
|
||||
{
|
||||
|
||||
if ( pStartNode->usIndex != NO_TILE && pStartNode->usIndex < NUMBEROFTILES )
|
||||
if ( pStartNode->usIndex != NO_TILE && pStartNode->usIndex < giNumberOfTiles )
|
||||
{
|
||||
GetTileType( pStartNode->usIndex, &fTileType );
|
||||
|
||||
@@ -369,7 +369,7 @@ BOOLEAN TypeRangeExistsInObjectLayer( INT32 iMapIndex, UINT32 fStartType, UINT32
|
||||
pOldObject = pObject;
|
||||
pObject = pObject->pNext;
|
||||
|
||||
if ( pOldObject->usIndex != NO_TILE && pOldObject->usIndex < NUMBEROFTILES )
|
||||
if ( pOldObject->usIndex != NO_TILE && pOldObject->usIndex < giNumberOfTiles )
|
||||
{
|
||||
GetTileType( pOldObject->usIndex, &fTileType );
|
||||
|
||||
@@ -442,7 +442,7 @@ BOOLEAN RemoveAllObjectsOfTypeRange( INT32 iMapIndex, UINT32 fStartType, UINT32
|
||||
pOldObject = pObject;
|
||||
pObject = pObject->pNext;
|
||||
|
||||
if ( pOldObject->usIndex != NO_TILE && pOldObject->usIndex < NUMBEROFTILES )
|
||||
if ( pOldObject->usIndex != NO_TILE && pOldObject->usIndex < giNumberOfTiles )
|
||||
{
|
||||
|
||||
GetTileType( pOldObject->usIndex, &fTileType );
|
||||
@@ -525,7 +525,7 @@ BOOLEAN AddLandToHead( INT32 iMapIndex, UINT16 usIndex )
|
||||
pNextLand->usIndex = usIndex;
|
||||
pNextLand->ubShadeLevel = LightGetAmbient();
|
||||
|
||||
if ( usIndex < NUMBEROFTILES )
|
||||
if ( usIndex < giNumberOfTiles )
|
||||
{
|
||||
// Get tile element
|
||||
TileElem = gTileDatabase[ usIndex ];
|
||||
@@ -629,7 +629,7 @@ BOOLEAN AdjustForFullTile( INT32 iMapIndex )
|
||||
|
||||
while( pLand != NULL )
|
||||
{
|
||||
if ( pLand->usIndex < NUMBEROFTILES )
|
||||
if ( pLand->usIndex < giNumberOfTiles )
|
||||
{
|
||||
// If this is a full tile, set new full tile
|
||||
TileElem = gTileDatabase[ pLand->usIndex ];
|
||||
@@ -1101,7 +1101,7 @@ LEVELNODE *AddStructToTailCommon( INT32 iMapIndex, UINT16 usIndex, BOOLEAN fAddS
|
||||
|
||||
if ( fAddStructDBInfo )
|
||||
{
|
||||
if ( usIndex < NUMBEROFTILES )
|
||||
if ( usIndex < giNumberOfTiles )
|
||||
{
|
||||
if (gTileDatabase[usIndex].pDBStructureRef != NULL)
|
||||
{
|
||||
@@ -1138,7 +1138,7 @@ LEVELNODE *AddStructToTailCommon( INT32 iMapIndex, UINT16 usIndex, BOOLEAN fAddS
|
||||
|
||||
if ( fAddStructDBInfo )
|
||||
{
|
||||
if ( usIndex < NUMBEROFTILES )
|
||||
if ( usIndex < giNumberOfTiles )
|
||||
{
|
||||
|
||||
if (gTileDatabase[usIndex].pDBStructureRef != NULL)
|
||||
@@ -1163,7 +1163,7 @@ LEVELNODE *AddStructToTailCommon( INT32 iMapIndex, UINT16 usIndex, BOOLEAN fAddS
|
||||
}
|
||||
|
||||
// Check flags for tiledat and set a shadow if we have a buddy
|
||||
if ( usIndex < NUMBEROFTILES )
|
||||
if ( usIndex < giNumberOfTiles )
|
||||
{
|
||||
if ( !GridNoIndoors( iMapIndex ) && gTileDatabase[ usIndex ].uiFlags & HAS_SHADOW_BUDDY && gTileDatabase[ usIndex ].sBuddyNum != -1 )
|
||||
{
|
||||
@@ -1210,7 +1210,7 @@ BOOLEAN AddStructToHead( INT32 iMapIndex, UINT16 usIndex )
|
||||
|
||||
CHECKF( CreateLevelNode( &pNextStruct ) != FALSE );
|
||||
|
||||
if ( usIndex < NUMBEROFTILES )
|
||||
if ( usIndex < giNumberOfTiles )
|
||||
{
|
||||
if (gTileDatabase[usIndex].pDBStructureRef != NULL)
|
||||
{
|
||||
@@ -1231,7 +1231,7 @@ BOOLEAN AddStructToHead( INT32 iMapIndex, UINT16 usIndex )
|
||||
|
||||
SetWorldFlagsFromNewNode( iMapIndex, pNextStruct->usIndex );
|
||||
|
||||
if ( usIndex < NUMBEROFTILES )
|
||||
if ( usIndex < giNumberOfTiles )
|
||||
{
|
||||
// Check flags for tiledat and set a shadow if we have a buddy
|
||||
if ( !GridNoIndoors( iMapIndex ) && gTileDatabase[ usIndex ].uiFlags & HAS_SHADOW_BUDDY && gTileDatabase[ usIndex ].sBuddyNum != -1 )
|
||||
@@ -1311,7 +1311,7 @@ BOOLEAN InsertStructIndex( INT32 iMapIndex, UINT16 usIndex, UINT8 ubLevel )
|
||||
return( FALSE );
|
||||
}
|
||||
|
||||
if ( usIndex < NUMBEROFTILES )
|
||||
if ( usIndex < giNumberOfTiles )
|
||||
{
|
||||
if (gTileDatabase[usIndex].pDBStructureRef != NULL)
|
||||
{
|
||||
@@ -1391,7 +1391,7 @@ BOOLEAN RemoveStructFromTailCommon( INT32 iMapIndex, BOOLEAN fRemoveStructDBInfo
|
||||
MemFree( pStruct );
|
||||
guiLevelNodes--;
|
||||
|
||||
if ( usIndex < NUMBEROFTILES )
|
||||
if ( usIndex < giNumberOfTiles )
|
||||
{
|
||||
// Check flags for tiledat and set a shadow if we have a buddy
|
||||
if ( !GridNoIndoors( iMapIndex ) && gTileDatabase[ usIndex ].uiFlags & HAS_SHADOW_BUDDY && gTileDatabase[ usIndex ].sBuddyNum != -1 )
|
||||
@@ -1454,7 +1454,7 @@ BOOLEAN RemoveStruct( INT32 iMapIndex, UINT16 usIndex )
|
||||
//If we have to, make sure to remove this node when we reload the map from a saved game
|
||||
RemoveStructFromMapTempFile( iMapIndex, usIndex );
|
||||
|
||||
if ( usIndex < NUMBEROFTILES )
|
||||
if ( usIndex < giNumberOfTiles )
|
||||
{
|
||||
// Check flags for tiledat and set a shadow if we have a buddy
|
||||
if ( !GridNoIndoors( iMapIndex ) && gTileDatabase[ usIndex ].uiFlags & HAS_SHADOW_BUDDY && gTileDatabase[ usIndex ].sBuddyNum != -1 )
|
||||
@@ -1515,7 +1515,7 @@ BOOLEAN RemoveStructFromLevelNode( INT32 iMapIndex, LEVELNODE *pNode )
|
||||
//If we have to, make sure to remove this node when we reload the map from a saved game
|
||||
RemoveStructFromMapTempFile( iMapIndex, usIndex );
|
||||
|
||||
if ( pNode->usIndex < NUMBEROFTILES )
|
||||
if ( pNode->usIndex < giNumberOfTiles )
|
||||
{
|
||||
// Check flags for tiledat and set a shadow if we have a buddy
|
||||
if ( !GridNoIndoors( iMapIndex ) && gTileDatabase[ usIndex ].uiFlags & HAS_SHADOW_BUDDY && gTileDatabase[ usIndex ].sBuddyNum != -1 )
|
||||
@@ -1571,7 +1571,7 @@ BOOLEAN RemoveAllStructsOfTypeRange( INT32 iMapIndex, UINT32 fStartType, UINT32
|
||||
usIndex = pOldStruct->usIndex;
|
||||
|
||||
// Remove Item
|
||||
if ( usIndex < NUMBEROFTILES )
|
||||
if ( usIndex < giNumberOfTiles )
|
||||
{
|
||||
RemoveStruct( iMapIndex, pOldStruct->usIndex );
|
||||
fRetVal = TRUE;
|
||||
@@ -2411,7 +2411,7 @@ LEVELNODE *AddRoofToTail( INT32 iMapIndex, UINT16 usIndex )
|
||||
{
|
||||
CHECKF( CreateLevelNode( &pRoof ) != FALSE );
|
||||
|
||||
if ( usIndex < NUMBEROFTILES )
|
||||
if ( usIndex < giNumberOfTiles )
|
||||
{
|
||||
if (gTileDatabase[usIndex].pDBStructureRef != NULL)
|
||||
{
|
||||
@@ -2438,7 +2438,7 @@ LEVELNODE *AddRoofToTail( INT32 iMapIndex, UINT16 usIndex )
|
||||
{
|
||||
CHECKF( CreateLevelNode( &pNextRoof ) != FALSE );
|
||||
|
||||
if ( usIndex < NUMBEROFTILES )
|
||||
if ( usIndex < giNumberOfTiles )
|
||||
{
|
||||
if (gTileDatabase[usIndex].pDBStructureRef != NULL)
|
||||
{
|
||||
@@ -2481,7 +2481,7 @@ BOOLEAN AddRoofToHead( INT32 iMapIndex, UINT16 usIndex )
|
||||
|
||||
CHECKF( CreateLevelNode( &pNextRoof ) != FALSE );
|
||||
|
||||
if ( usIndex < NUMBEROFTILES )
|
||||
if ( usIndex < giNumberOfTiles )
|
||||
{
|
||||
if (gTileDatabase[usIndex].pDBStructureRef != NULL)
|
||||
{
|
||||
@@ -2769,7 +2769,7 @@ LEVELNODE *AddOnRoofToTail( INT32 iMapIndex, UINT16 usIndex )
|
||||
{
|
||||
CHECKF( CreateLevelNode( &pOnRoof ) != FALSE );
|
||||
|
||||
if ( usIndex < NUMBEROFTILES )
|
||||
if ( usIndex < giNumberOfTiles )
|
||||
{
|
||||
if (gTileDatabase[usIndex].pDBStructureRef != NULL)
|
||||
{
|
||||
@@ -2798,7 +2798,7 @@ LEVELNODE *AddOnRoofToTail( INT32 iMapIndex, UINT16 usIndex )
|
||||
{
|
||||
CHECKF( CreateLevelNode( &pNextOnRoof ) != FALSE );
|
||||
|
||||
if ( usIndex < NUMBEROFTILES )
|
||||
if ( usIndex < giNumberOfTiles )
|
||||
{
|
||||
if (gTileDatabase[usIndex].pDBStructureRef != NULL)
|
||||
{
|
||||
@@ -2838,7 +2838,7 @@ BOOLEAN AddOnRoofToHead( INT32 iMapIndex, UINT16 usIndex )
|
||||
pOnRoof = gpWorldLevelData[ iMapIndex ].pOnRoofHead;
|
||||
|
||||
CHECKF( CreateLevelNode( &pNextOnRoof ) != FALSE );
|
||||
if ( usIndex < NUMBEROFTILES )
|
||||
if ( usIndex < giNumberOfTiles )
|
||||
{
|
||||
if (gTileDatabase[usIndex].pDBStructureRef != NULL)
|
||||
{
|
||||
@@ -3226,7 +3226,7 @@ BOOLEAN RemoveAllTopmostsOfTypeRange( INT32 iMapIndex, UINT32 fStartType, UINT32
|
||||
pOldTopmost = pTopmost;
|
||||
pTopmost = pTopmost->pNext;
|
||||
|
||||
if ( pOldTopmost->usIndex != NO_TILE && pOldTopmost->usIndex < NUMBEROFTILES )
|
||||
if ( pOldTopmost->usIndex != NO_TILE && pOldTopmost->usIndex < giNumberOfTiles )
|
||||
{
|
||||
GetTileType( pOldTopmost->usIndex, &fTileType );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user