1
This commit is contained in:
parent
24c8d74094
commit
c5cdc0a954
@ -27,7 +27,7 @@ void Bullet::Initialize()
|
||||
void Bullet::Update(int delta_time)
|
||||
{
|
||||
movement->Update(delta_time);
|
||||
pos = pos + dir;
|
||||
pos = pos + dir * gun_meta->i->bullet_speed();
|
||||
std::vector<Entity*> objects;
|
||||
int detection_flags = 0;
|
||||
{
|
||||
|
@ -177,7 +177,7 @@ void Player::_CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg)
|
||||
}
|
||||
shot_start = msg.shot_start();
|
||||
shot_hold = msg.shot_hold();
|
||||
if (shot_hold) {
|
||||
if (!shot_hold) {
|
||||
series_shot_frames = 0;
|
||||
}
|
||||
}
|
||||
@ -225,6 +225,8 @@ void Player::MakeUpdateMsg()
|
||||
for (auto& obj_uniid : room->frame_data.deleted_objects) {
|
||||
update_msg->add_del_objids(obj_uniid);
|
||||
}
|
||||
*update_msg->mutable_shots() = room->frame_data.shots;
|
||||
*update_msg->mutable_bullets() = room->frame_data.bullets;
|
||||
for (auto& itr : new_objects) {
|
||||
itr->FillMFObjectFull(update_msg->add_full_objects());
|
||||
#if 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user