From 00affa6a3c26204b8f59ec775a80d08dc7e1d009 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sun, 1 Jan 2023 15:46:33 +0800 Subject: [PATCH] 1 --- server/gameserver/bullet.cc | 9 --------- 1 file changed, 9 deletions(-) diff --git a/server/gameserver/bullet.cc b/server/gameserver/bullet.cc index cbdb3bff..8ed4b6da 100644 --- a/server/gameserver/bullet.cc +++ b/server/gameserver/bullet.cc @@ -235,17 +235,8 @@ void Bullet::ProcBomb() if (sender.Get() && sender.Get()->IsHuman()) { sender.Get()->AsHuman()->stats.IncWeaponUseTimes(gun_meta->id(), 1); } -#if 1 AddGunBuff(); ProcSmokeBomb(); -#else - a8::Vec2 bomb_pos = GetPos(); - float time_addition = 0; - if (IsCurrWeapon() && sender.Get()) { - time_addition += sender.Get()->GetAbility()->GetAttrAbs(kHAT_WeaponExplosionContinueTime); - } - room->frame_event.AddSmoke(this, meta->id(), bomb_pos, time_addition); -#endif } break; case IS_POSION_GAS_BOMB: