流量优化
This commit is contained in:
parent
aff0fdb0c8
commit
d4a8e500c9
@ -47,8 +47,10 @@ void FrameEvent::AddShot(Human* hum)
|
||||
} else {
|
||||
hum->curr_weapon->ToPB(p.mutable_weapon());
|
||||
}
|
||||
#if 0
|
||||
p.set_offhand(true);
|
||||
p.set_bullskin(10001);
|
||||
#endif
|
||||
}
|
||||
{
|
||||
int shot_idx = shots_.size() - 1;
|
||||
@ -75,7 +77,9 @@ void FrameEvent::AddBullet(Human* hum, a8::Vec2 born_pos, a8::Vec2 dir, float fl
|
||||
}
|
||||
TypeConvert::ToPb(born_pos, p.mutable_pos());
|
||||
TypeConvert::ToPb(dir, p.mutable_dir());
|
||||
#if 0
|
||||
p.set_bulletskin(10001);
|
||||
#endif
|
||||
if (hum->tank_weapon.meta) {
|
||||
p.set_gun_id(hum->tank_weapon.meta->i->id());
|
||||
p.set_gun_lv(hum->tank_weapon.weapon_lv);
|
||||
|
@ -433,7 +433,11 @@ void Player::Shot()
|
||||
AutoLoadingBullet();
|
||||
}
|
||||
last_shot_frameno_ = room->frame_no;
|
||||
#if 1
|
||||
room->frame_event.AddBulletNumChg(this);
|
||||
#else
|
||||
need_sync_active_player = true;
|
||||
#endif
|
||||
}
|
||||
|
||||
void Player::ProcInteraction()
|
||||
|
Loading…
x
Reference in New Issue
Block a user