August 6th Patch Update
Accumulated DLL source code changes since June 22nd patch
This commit is contained in:
parent
93a1af2eff
commit
ae72fce5dd
76 changed files with 1071 additions and 210 deletions
|
@ -316,6 +316,7 @@ void LogicClass::AI(void)
|
|||
*/
|
||||
for (index = 0; index < Count(); index++) {
|
||||
ObjectClass * obj = (*this)[index];
|
||||
int count = Count();
|
||||
|
||||
BStart(BENCH_AI);
|
||||
obj->AI();
|
||||
|
@ -354,8 +355,9 @@ void LogicClass::AI(void)
|
|||
** If the object was destroyed in the process of performing its AI, then
|
||||
** adjust the index so that no object gets skipped.
|
||||
*/
|
||||
if (obj != (*this)[index]) {
|
||||
index--;
|
||||
int count_diff = Count() - count;
|
||||
if (count_diff < 0) {
|
||||
index += count_diff;
|
||||
}
|
||||
}
|
||||
HouseClass::Recalc_Attributes();
|
||||
|
|
Reference in a new issue