MissileTypeExplosion moved to missile.c and made it global available.

This commit is contained in:
johns 2001-06-04 14:50:56 +00:00
parent 04ab1d7da1
commit 03dd8c2c54

View file

@ -125,8 +125,6 @@ local MissileType* MissileTypeExorcism;
local MissileType* MissileTypeFireball;
/// missile-type for generic spell missile
local MissileType* MissileTypeSpell;
/// missile-type for the explosion missile
local MissileType* MissileTypeExplosion;
/// missile-type for the rune missile
local MissileType* MissileTypeRune;
/// missile-type for the whirlwind missile
@ -415,7 +413,6 @@ global void InitSpells(void)
MissileTypeFireball = MissileTypeByIdent("missile-fireball");
MissileTypeSpell = MissileTypeByIdent("missile-normal-spell");
MissileTypeExorcism = MissileTypeByIdent("missile-exorcism");
MissileTypeExplosion = MissileTypeByIdent("missile-explosion");
MissileTypeRune = MissileTypeByIdent("missile-rune");
MissileTypeWhirlwind = MissileTypeByIdent("missile-whirlwind");
MissileTypeBlizzard = MissileTypeByIdent("missile-blizzard");
@ -861,7 +858,7 @@ global int SpellCast(Unit * unit, const SpellType * spell, Unit * target,
UnitLost(target);
ReleaseUnit(target);
type=UnitTypeCritter;
if( CanMoveToMask(x,y,TypeMovementMask(type)) ) {
if( UnitTypeCanMoveTo(x,y,type) ) {
MakeUnitAndPlace(x, y, type, Players+PlayerNumNeutral);
}