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/Units/Mobs/MobWoodcutter.cs

    r4756 r4764  
    9191            //emmitter.Position = new Vector3(ScreenPos.X, 0.0F, ScreenPos.Y); 
    9292            //Sound2D.PlaySound3D(emmitter, "sword1"); 
    93             TileEntity te = level.GetTileEntity(this, (int)(x / Viewport.TILESIZE), (int)(z / Viewport.TILESIZE)); 
    94             if (te != null && typeof(TileEntityTree).IsAssignableFrom(te.GetType())) 
     93            TileEntityTree te = level.GetTileEntity(this, (int)(x / Viewport.TILESIZE), (int)(z / Viewport.TILESIZE)) as TileEntityTree; 
     94            if (te != null) 
    9595            { 
    9696                if (currentTarget != null) StopChopping(); 
    97                 OrderChop((TileEntityTree)te, sameOrderAmount, wasCalledBefore); 
     97                OrderChop(te, sameOrderAmount, wasCalledBefore); 
    9898            } 
    9999            else 
Note: See TracChangeset for help on using the changeset viewer.