1
This commit is contained in:
parent
f61c743524
commit
9a130c748c
@ -610,7 +610,9 @@ void MapInstance::MarkMapAreaPolys()
|
||||
if (!tile) {
|
||||
abort();
|
||||
}
|
||||
poly_ext_datas_.reserve(tile->header->polyCount);
|
||||
for (int i = 0; i < tile->header->polyCount; ++i) {
|
||||
int ext_flag = 0;
|
||||
dtPoly* poly = &tile->polys[i];
|
||||
if ((poly->flags & SAMPLE_POLYFLAGS_SWIM) == SAMPLE_POLYFLAGS_SWIM) {
|
||||
const mt::MapArea* last_area_meta = nullptr;
|
||||
@ -632,6 +634,32 @@ void MapInstance::MarkMapAreaPolys()
|
||||
if (!last_area_meta) {
|
||||
abort();
|
||||
}
|
||||
if (last_area_meta->area_type() != 1) {
|
||||
abort();
|
||||
}
|
||||
switch (last_area_meta->area_subtype()) {
|
||||
case 1:
|
||||
{
|
||||
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
{
|
||||
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
{
|
||||
|
||||
}
|
||||
break;
|
||||
default:
|
||||
{
|
||||
abort();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
poly_ext_datas_.push_back(ext_flag);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user