mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-10 12:36:45 +03:00
16 lines
419 B
C++
16 lines
419 B
C++
![]() |
#include "../newobjects.h"
|
||
|
#include "../../Game/items.h"
|
||
|
|
||
|
void InitialiseSubmarine(short itemNum)
|
||
|
{
|
||
|
ITEM_INFO* item;
|
||
|
|
||
|
item = &Items[itemNum];
|
||
|
ClearItem(itemNum);
|
||
|
item->animNumber = Objects[item->objectNumber].animIndex;
|
||
|
item->frameNumber = Anims[item->animNumber].frameBase;
|
||
|
item->goalAnimState = 0;
|
||
|
item->currentAnimState = 0;
|
||
|
if (item->triggerFlags)
|
||
|
item->triggerFlags = 120;
|
||
|
}
|