移除无用日志

This commit is contained in:
aozhiwei 2020-07-27 20:51:33 +08:00
parent b87ab4089f
commit cff8d13ff8
3 changed files with 7 additions and 1 deletions

View File

@ -3162,6 +3162,7 @@ void Human::DropItems(Obstacle* obstacle)
++normal_drop_times_; ++normal_drop_times_;
} }
#ifdef DEBUG #ifdef DEBUG
#if 0
a8::UdpLog::Instance()->Debug("DropItems normal:%d box:%d drop_id:%d is_treasure_box:%d", a8::UdpLog::Instance()->Debug("DropItems normal:%d box:%d drop_id:%d is_treasure_box:%d",
{ {
normal_drop_times_, normal_drop_times_,
@ -3170,6 +3171,7 @@ void Human::DropItems(Obstacle* obstacle)
is_treasure_box ? 1 : 0 is_treasure_box ? 1 : 0
}); });
#endif #endif
#endif
} }
void Human::RecalcBuffAttr() void Human::RecalcBuffAttr()

View File

@ -2604,7 +2604,7 @@ void Room::AddPlayerPostProc(Player* hum)
} }
if (GetRoomMode() == kZombieMode) { if (GetRoomMode() == kZombieMode) {
#if 1 #if 1
hum->ChangeToRace(kZombieRace, 3); hum->ChangeToRace(kZombieRace, 2);
#else #else
hum->ChangeToRace(kHumanRace, 1); hum->ChangeToRace(kHumanRace, 1);
#endif #endif

View File

@ -20,12 +20,14 @@ RoomObstacle::~RoomObstacle()
for (auto& itr : colliders_) { for (auto& itr : colliders_) {
ColliderComponent* collider = itr; ColliderComponent* collider = itr;
#ifdef DEBUG #ifdef DEBUG
#if 0
a8::UdpLog::Instance()->Debug("OnRemoveCollider %d %d %d", a8::UdpLog::Instance()->Debug("OnRemoveCollider %d %d %d",
{ {
room->GetRoomIdx(), room->GetRoomIdx(),
GetEntityUniId(), GetEntityUniId(),
(long long)collider (long long)collider
}); });
#endif
#endif #endif
room->map_service->RemoveCollider(collider); room->map_service->RemoveCollider(collider);
} }
@ -69,12 +71,14 @@ void RoomObstacle::RecalcSelfCollider()
} }
if (!self_collider_) { if (!self_collider_) {
#ifdef DEBUG #ifdef DEBUG
#if 0
a8::UdpLog::Instance()->Debug("OnAddCollider %d %d %d", a8::UdpLog::Instance()->Debug("OnAddCollider %d %d %d",
{ {
room->GetRoomIdx(), room->GetRoomIdx(),
GetEntityUniId(), GetEntityUniId(),
(long long)self_collider_ (long long)self_collider_
}); });
#endif
#endif #endif
} }
} }