DEBUG preprocessor conditional inside method

This commit is contained in:
White 2015-04-09 15:56:51 +09:30
parent c0f28f4aaf
commit b4f2ddef47
5 changed files with 11 additions and 15 deletions

View file

@ -2469,9 +2469,7 @@ namespace TShockAPI
{
if (type == 100 || type == 164 || type == 180 || type == 261 || (type > 289 && type < 298) || (type >= 325 && type <= 328) || (type >= 345 && type <= 352))
{
#if DEBUG
TShock.Log.Debug("Certain projectiles have been ignored for cheat detection.");
#endif
}
else
{
@ -2498,9 +2496,7 @@ namespace TShockAPI
{
if (type == 90 && TShock.Config.ProjIgnoreShrapnel) // Ignore crystal shards
{
#if DEBUG
TShock.Log.Debug("Ignoring shrapnel per config..");
#endif
}
else if (!Main.projectile[index].active)
{