1
This commit is contained in:
parent
f5da282ce0
commit
40982c8c35
@ -59,9 +59,7 @@ void AirDrop::Exec(int appear_time, int box_id, int airdrop_id)
|
||||
const mt::MapThing* thing_meta = mt::MapThing::GetById(box_id);
|
||||
if (thing_meta && thing_meta->type() == 2) {
|
||||
glm::vec3 box_pos;
|
||||
#if 0
|
||||
frame_event.AddAirDrop(appear_time, box_id, final_box_pos);
|
||||
#endif
|
||||
room_->frame_event.AddAirDrop(appear_time, box_id, box_pos);
|
||||
room_->xtimer.SetTimeoutEx
|
||||
(SERVER_FRAME_RATE * appear_time / 1000.f,
|
||||
[this, box_pos, airdrop_id, box_id]
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
#include "mt/Equip.h"
|
||||
|
||||
void FrameEvent::AddAirDrop(int appear_time, int box_id, Position box_pos)
|
||||
void FrameEvent::AddAirDrop(int appear_time, int box_id, const glm::vec3& box_pos)
|
||||
{
|
||||
cs::MFAirDrop* airdrop = room->frame_event_data->airdrops_.Add();
|
||||
airdrop->set_appear_time(appear_time);
|
||||
|
@ -13,7 +13,7 @@ struct FrameEvent
|
||||
public:
|
||||
Room* room = nullptr;
|
||||
|
||||
void AddAirDrop(int appear_time, int box_id, Position box_pos);
|
||||
void AddAirDrop(int appear_time, int box_id, const glm::vec3& box_pos);
|
||||
void AddAirRaid(int appear_time, const glm::vec3& raid_pos, float raid_rad);
|
||||
void AddEmote(CreatureWeakPtr& sender, int emote_id);
|
||||
void AddShot(CreatureWeakPtr& sender);
|
||||
|
@ -468,7 +468,7 @@ void RoomObstacle::ActiveAirDrop()
|
||||
}
|
||||
room->frame_event.AddAirDrop(delay_time,
|
||||
appear_time,
|
||||
born_pos);
|
||||
born_pos.ToGlmVec3());
|
||||
}
|
||||
},
|
||||
&xtimer_attacher);
|
||||
|
Loading…
x
Reference in New Issue
Block a user