This commit is contained in:
parent
f6706b8259
commit
26994bdf43
@ -22,6 +22,10 @@
|
||||
#include "triggers\tlevexit.h"
|
||||
#endif
|
||||
|
||||
#ifndef __PICKUPS_PICKUP_H__
|
||||
#include "pickups\pickup.h"
|
||||
#endif
|
||||
|
||||
#ifndef __SOUND_SOUND_H__
|
||||
#include "sound\sound.h"
|
||||
#endif
|
||||
@ -541,8 +545,16 @@ void CLevel::initLayers()
|
||||
sThingHdr *Hdr=(sThingHdr*)MakePtr(LevelHdr,LevelHdr->ItemList);
|
||||
ItemCount=Hdr->Count;
|
||||
ItemList=(sThingItem*)MakePtr(Hdr,sizeof(sThingHdr));
|
||||
}
|
||||
|
||||
DVECTOR pos;
|
||||
for(int i=0;i<ItemCount;i++)
|
||||
{
|
||||
pos.vx=ItemList->Pos.X<<4;
|
||||
pos.vy=ItemList->Pos.Y<<4;
|
||||
createPickup((PICKUP_TYPE)ItemList->Type,&pos);
|
||||
ItemList++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -46,18 +46,22 @@ Stomper=36
|
||||
DustDevil=37
|
||||
|
||||
# Items
|
||||
Balloon=0
|
||||
BubbleMixture=1
|
||||
Glasses=2
|
||||
Health25=3
|
||||
Health50=4
|
||||
Health100=5
|
||||
Helmet=6
|
||||
JellyAmmo=7
|
||||
Pants=8
|
||||
Shoe=9
|
||||
Spatula=10
|
||||
Teeth=11
|
||||
Big_Health=0
|
||||
Medium_Health=1
|
||||
Small_Health=2
|
||||
Extra_Life=3
|
||||
Golden_Spatula=4
|
||||
Jelly_Launcher_Ammo=5
|
||||
Bubble_Mixture=6
|
||||
Bubble_Wand=7
|
||||
Net=8
|
||||
Safety_Glasses=9
|
||||
Squeaky_Shoes=10
|
||||
Balloon=11
|
||||
Helmet=12
|
||||
Coral_Blower=13
|
||||
Quest_Item=14
|
||||
|
||||
|
||||
# Platforms
|
||||
Boots=0
|
||||
|
Loading…
Reference in New Issue
Block a user