mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 00:37:58 +03:00
Implemented Baboon
- Fixed AIObject not being initialized ! - Fixed ITEM_DEACTIVATED (cause im french and ITEM_DESACTIVATED is more appropriate)
This commit is contained in:
parent
5152ec047c
commit
900235c967
30 changed files with 792 additions and 41 deletions
|
@ -1535,7 +1535,7 @@ void GameScriptItem::EnableItem()
|
|||
{
|
||||
if (Objects[NativeItem->objectNumber].intelligent)
|
||||
{
|
||||
if (NativeItem->status == ITEM_DESACTIVATED)
|
||||
if (NativeItem->status == ITEM_DEACTIVATED)
|
||||
{
|
||||
NativeItem->touchBits = 0;
|
||||
NativeItem->status = ITEM_ACTIVE;
|
||||
|
@ -1570,7 +1570,7 @@ void GameScriptItem::DisableItem()
|
|||
if (NativeItem->status == ITEM_ACTIVE)
|
||||
{
|
||||
NativeItem->touchBits = 0;
|
||||
NativeItem->status = ITEM_DESACTIVATED;
|
||||
NativeItem->status = ITEM_DEACTIVATED;
|
||||
RemoveActiveItem(NativeItemNumber);
|
||||
DisableBaddieAI(NativeItemNumber);
|
||||
}
|
||||
|
@ -1579,7 +1579,7 @@ void GameScriptItem::DisableItem()
|
|||
{
|
||||
NativeItem->touchBits = 0;
|
||||
RemoveActiveItem(NativeItemNumber);
|
||||
NativeItem->status = ITEM_DESACTIVATED;
|
||||
NativeItem->status = ITEM_DEACTIVATED;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue