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