bug fixes from Overhaul:

- roof inaccessible tiles problem
- AI hang while deciding on an action (fire 0 rounds on auto)


git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@868 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
lalien
2007-05-08 15:10:29 +00:00
parent 30cc546c09
commit 8e80a6168a
5 changed files with 17 additions and 5 deletions
+5 -1
View File
@@ -1302,7 +1302,11 @@ void CompileTileMovementCosts( UINT16 usGridNo )
{
if (!(pStructure->fFlags & STRUCTURE_PASSABLE || pStructure->fFlags & STRUCTURE_NORMAL_ROOF))
{
fStructuresOnRoof = TRUE;
// DNS: Try a fix to prevent people from "permanently" blocking the roof
if (!(pStructure->fFlags & STRUCTURE_PERSON))
{
fStructuresOnRoof = TRUE;
}
}
}
pStructure = pStructure->pNext;