diff --git a/server/gameserver/constant.h b/server/gameserver/constant.h index 35dc211..7992237 100755 --- a/server/gameserver/constant.h +++ b/server/gameserver/constant.h @@ -209,3 +209,5 @@ const int MAX_ALL_HTTP_NUM = MAX_SYS_HTTP_NUM + MAX_USER_HTTP_NUM; const int DEFAULT_BORN_POINT_X = 3000; const int DEFAULT_BORN_POINT_Y = 3000; + +const int BORN_POINT_THINGID = -10000; diff --git a/server/gameserver/room.cc b/server/gameserver/room.cc index 2e40610..494ed12 100644 --- a/server/gameserver/room.cc +++ b/server/gameserver/room.cc @@ -366,6 +366,7 @@ void Room::CreateThings() } else { CreateObstacle(thing_id, thing_tpl.i->x(), thing_tpl.i->y()); } + } else if (thing_id == BORN_POINT_THINGID) { } else { MetaData::Equip* equip_meta = MetaMgr::Instance()->GetEquip(thing_id); if (equip_meta) {