This commit is contained in:
aozhiwei 2021-04-15 16:10:07 +08:00
parent 6a7334b756
commit e3acf84121

View File

@ -1212,6 +1212,7 @@ void Creature::Shot(a8::Vec2& target_dir, bool& shot_ok, float fly_distance)
last_shot_frameno_ = room->GetFrameNo(); last_shot_frameno_ = room->GetFrameNo();
if (!need_sync_active_player && IsPlayer()) { if (!need_sync_active_player && IsPlayer()) {
room->frame_event.AddBulletNumChg((Human*)this); room->frame_event.AddBulletNumChg((Human*)this);
room->frame_event.AddWeaponAmmoChg((Human*)this);
} }
shot_ok = true; shot_ok = true;
} }