This commit is contained in:
aozhiwei 2019-09-09 20:13:17 +08:00
parent 6412497e86
commit 75fdfd7062
2 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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) {