From 6c679ad4de783a6b64c166c20b369335e803cfbf Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 20 Apr 2020 16:32:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=BA=E5=99=A8=E4=BA=BA?= =?UTF-8?q?=E6=95=A3=E5=BC=B9=E6=9E=AA=E5=BC=B9=E9=81=93=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/gameserver/human.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 5cd2a71..3039a6f 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -312,8 +312,8 @@ void Human::Shot(a8::Vec2& target_dir) } } bullet_dir.Rotate(bullet_angle / 180.0f); - room->frame_event.AddBullet(this, bullet_born_pos, attack_dir, fly_distance); - room->CreateBullet(this, curr_weapon, bullet_born_pos, attack_dir, fly_distance); + room->frame_event.AddBullet(this, bullet_born_pos, bullet_dir, fly_distance); + room->CreateBullet(this, curr_weapon, bullet_born_pos, bullet_dir, fly_distance); } --curr_weapon->ammo; int slot_id = curr_weapon->meta->i->_inventory_slot();