This commit is contained in:
parent
fa4c0687eb
commit
96d913c874
3 changed files with 5 additions and 4 deletions
|
@ -31,13 +31,14 @@ CEnemyAsSpriteProjectile *CEnemyAsSpriteProjectile::Create()
|
|||
{
|
||||
CEnemyAsSpriteProjectile *projectile;
|
||||
|
||||
projectile = (CEnemyAsSpriteProjectile*)CThingManager::GetThing(TYPE_PLAYERPROJECTILE,0);
|
||||
projectile = (CEnemyAsSpriteProjectile*)CThingManager::GetThing(TYPE_PLAYERPROJECTILE,1);
|
||||
if ( !projectile )
|
||||
{
|
||||
projectile = new ("player projectile") CEnemyAsSpriteProjectile;
|
||||
}
|
||||
|
||||
ASSERT(projectile);
|
||||
projectile->setThingSubType(1);
|
||||
|
||||
return( projectile );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue