Example #1
0
        internal static void OnDrawProj(Main m, int prid)
        {
            var pr = Main.projectile[prid];
            var bh = pr.P_BHandler as ProjBHandler;

            if (bh == null || bh.PreDraw(Main.spriteBatch))
            {
                m.RealDrawProj(prid);

                if (bh != null)
                    bh.OnDraw(Main.spriteBatch);
            }
        }