mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Fix for AI seeking climb point in toxic gas
Fix for civilians trying to climb the roof to seek noise Fix for punching and stabbing Transparent change: Gave names to anonymous structs in OBJECTTYPE git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1225 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+4
-4
@@ -180,9 +180,9 @@ void AddAllPits()
|
||||
{
|
||||
if( gWorldItems[ i ].o.usItem == ACTION_ITEM )
|
||||
{
|
||||
if( gWorldItems[ i ].o.bActionValue == ACTION_ITEM_SMALL_PIT )
|
||||
if( gWorldItems[ i ].o.ItemData.Trigger.bActionValue == ACTION_ITEM_SMALL_PIT )
|
||||
Add3X3Pit( gWorldItems[ i ].sGridNo );
|
||||
else if( gWorldItems[ i ].o.bActionValue == ACTION_ITEM_LARGE_PIT )
|
||||
else if( gWorldItems[ i ].o.ItemData.Trigger.bActionValue == ACTION_ITEM_LARGE_PIT )
|
||||
Add5X5Pit( gWorldItems[ i ].sGridNo );
|
||||
}
|
||||
}
|
||||
@@ -195,9 +195,9 @@ void RemoveAllPits()
|
||||
{
|
||||
if( gWorldItems[ i ].o.usItem == ACTION_ITEM )
|
||||
{
|
||||
if( gWorldItems[ i ].o.bActionValue == ACTION_ITEM_SMALL_PIT )
|
||||
if( gWorldItems[ i ].o.ItemData.Trigger.bActionValue == ACTION_ITEM_SMALL_PIT )
|
||||
Remove3X3Pit( gWorldItems[ i ].sGridNo );
|
||||
else if( gWorldItems[ i ].o.bActionValue == ACTION_ITEM_LARGE_PIT )
|
||||
else if( gWorldItems[ i ].o.ItemData.Trigger.bActionValue == ACTION_ITEM_LARGE_PIT )
|
||||
Remove5X5Pit( gWorldItems[ i ].sGridNo );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user