diff --git a/server/gameserver/boxdrop.cc b/server/gameserver/boxdrop.cc index 22723ed4..96665c85 100644 --- a/server/gameserver/boxdrop.cc +++ b/server/gameserver/boxdrop.cc @@ -2,6 +2,8 @@ #include "boxdrop.h" #include "room.h" +#include "hero.h" +#include "obstacle.h" const int BOX_ID = 150001; @@ -22,12 +24,12 @@ void BoxDrop::UnInit() void BoxDrop::OnHeroDeadDrop(Hero* hero) { - + Drop(1, hero->GetPos().ToGlmVec3()); } void BoxDrop::OnObstacleDeadDrop(Obstacle* ob) { - + Drop(1, ob->GetPos().ToGlmVec3()); } void BoxDrop::Drop(int num, const glm::vec3& center)