1
0

- Fixed a bug where I used the FireCharge ITEM instead of the Projectile

ENUM
This commit is contained in:
JoannisO 2014-06-03 18:19:06 +02:00
parent daae75b30b
commit 2ecf425c39

View File

@ -215,7 +215,7 @@ void cDispenserEntity::DropSpenseFromSlot(cChunk & a_Chunk, int a_SlotNum)
void cDispenserEntity::SpawnProjectileFromDispenser(int & a_BlockX, int & a_BlockY, int & a_BlockZ, cProjectileEntity::eKind a_kind, Vector3d a_ShootVector)
{
if(a_kind != E_ITEM_FIRE_CHARGE)
if(a_kind != cProjectileEntity::pkFireCharge)
a_ShootVector.y = a_ShootVector.y + 1;
m_World->CreateProjectile((double) a_BlockX + 0.5, (double) a_BlockY + 0.5, (double) a_BlockZ + 0.5, a_kind, NULL, NULL, &a_ShootVector);