Ignore:
Timestamp:
2013-10-07 21:47:25 (8 years ago)
Author:
dezhidki
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2013/30/DenisZ/CastleMaster/CastleMaster/CastleMaster/Entities/Entity.cs

    r4754 r4764  
    156156        private bool SkipCollisionCheck(BoundingRectangleOwner collidableOwner) 
    157157        { 
    158             if (typeof(Entity).IsAssignableFrom(collidableOwner.GetType())) 
    159                 return !((Entity)collidableOwner).Blocks(this); 
    160             if (typeof(Tile).IsAssignableFrom(collidableOwner.GetType())) 
     158            //if (typeof(Entity).IsAssignableFrom(collidableOwner.GetType())) 
     159            //    return !((Entity)collidableOwner).Blocks(this); 
     160            //if (typeof(Tile).IsAssignableFrom(collidableOwner.GetType())) 
     161            //    return false; 
     162            Entity ent = collidableOwner as Entity; 
     163            if (ent != null) 
     164                return !ent.Blocks(this); 
     165            if (collidableOwner as Tile != null) 
    161166                return false; 
    162167            return true; 
Note: See TracChangeset for help on using the changeset viewer.