initialise WDT data for new maps
This commit is contained in:
@@ -209,10 +209,15 @@ void MapIndex::save()
|
||||
SetChunkHeader(wdtFile, curPos, 'MPHD', sizeof(MPHD));
|
||||
curPos += 8;
|
||||
|
||||
// todo : wdt flags?
|
||||
wdtFile.Extend(32);
|
||||
mphd.flags = 0;
|
||||
mphd.something = 0;
|
||||
if (mBigAlpha)
|
||||
mphd.flags |= 4;
|
||||
if (_sort_models_by_size_class)
|
||||
mphd.flags |= 8;
|
||||
|
||||
wdtFile.Insert(curPos, sizeof(MPHD), (char*)&mphd);
|
||||
curPos += sizeof(MPHD);
|
||||
// }
|
||||
|
||||
// MAIN
|
||||
// {
|
||||
|
||||
@@ -470,6 +470,7 @@ void MapCreationWizard::saveCurrentEntry()
|
||||
record.writeString(1, _directory->text().toStdString());
|
||||
|
||||
record.write(2, _instance_type->itemData(_instance_type->currentIndex()).toInt());
|
||||
record.write(3, _sort_by_size_cat->isChecked() ? 16 : 0 );
|
||||
_map_name->toRecord(record, 5);
|
||||
|
||||
record.write(22, _area_table_id->value());
|
||||
|
||||
Reference in New Issue
Block a user